algunas redes sociales solo necesitan que descarguemos la url

This commit is contained in:
f 2020-08-20 19:52:06 -03:00
parent 9fee387183
commit 7ba13a699c

View file

@ -1,9 +1,18 @@
{% assign url = site.url | append: include.url | uri_escape %} {% capture url %}{{ site.url }}{{ include.url }}{% endcapture %}
{% assign title = include.title | default: site.title | uri_escape %}
{% assign description = include.description | default: '' | uri_escape %} {% unless include.share.url == '%url' %}
{% assign url = url | cgi_escape %}
{% endunless %}
{% assign title = include.title | cgi_escape %}
{% assign description = include.description | default: '' | cgi_escape %}
<a <a
target="_blank" {% if include.share.url == '%url' %}
download
{% else %}
target="_blank"
{% endif %}
rel="nofollow"
title="{{ include.share.title }}" title="{{ include.share.title }}"
class="d-flex flex-column align-items-center p-3" class="d-flex flex-column align-items-center p-3"
href="{{ include.share.url | replace: '%url', url | replace: '%title', title | replace: '%description', description }}"> href="{{ include.share.url | replace: '%url', url | replace: '%title', title | replace: '%description', description }}">