2020-08-20 22:52:06 +00:00
|
|
|
{% capture url %}{{ site.url }}{{ include.url }}{% endcapture %}
|
|
|
|
|
|
|
|
{% unless include.share.url == '%url' %}
|
2020-08-29 21:41:57 +00:00
|
|
|
{% assign url = url | default: '' | cgi_escape %}
|
2020-08-20 22:52:06 +00:00
|
|
|
{% endunless %}
|
2020-08-29 21:41:57 +00:00
|
|
|
{% assign title = include.title | default: '' | cgi_escape %}
|
2020-08-20 22:52:06 +00:00
|
|
|
{% assign description = include.description | default: '' | cgi_escape %}
|
2020-06-17 20:01:11 +00:00
|
|
|
|
|
|
|
<a
|
2020-08-20 22:52:06 +00:00
|
|
|
{% if include.share.url == '%url' %}
|
|
|
|
download
|
|
|
|
{% else %}
|
|
|
|
target="_blank"
|
|
|
|
{% endif %}
|
|
|
|
rel="nofollow"
|
2020-06-17 20:01:11 +00:00
|
|
|
title="{{ include.share.title }}"
|
|
|
|
class="d-flex flex-column align-items-center p-3"
|
|
|
|
href="{{ include.share.url | replace: '%url', url | replace: '%title', title | replace: '%description', description }}">
|
|
|
|
<i class="fa fa-fw fa-2x fa-{{ include.share.icon }}"></i>
|
|
|
|
<span>{{ include.share.title }}</span>
|
|
|
|
</a>
|