Sha256: b9b24426acef513dc6a282574fa0d5409002690c6ed5e724797ce33528c6b0f2

Contents?: true

Size: 859 Bytes

Versions: 1

Compression:

Stored size: 859 Bytes

Contents

{% capture url %}{{ site.url }}{{ include.url }}{% endcapture %}

{% unless include.share.url == '%url' %}
  {% assign url = url | cgi_escape %}
{% endunless %}
{% assign title = include.title | cgi_escape %}
{% assign description = include.description | default: '' | cgi_escape %}
{% assign hashtag = include.categories | first | capitalize | remove: ' ' %}

<a
  {% if include.share.url == '%url' %}
    download
  {% else %}
    target="_blank"
  {% endif %}
  rel="nofollow"
  title="{{ include.share.title }}"
  class="d-flex flex-column align-items-center"
  href="{{
    include.share.url
    | replace: '%url', url
    | replace: '%title', title
    | replace: '%description', description
    | replace: '%hashtag', hashtag
    }}">
  <i class="fa fa-fw fa-{{ include.share.icon }}"></i>
  <span class="sr-only">{{ include.share.title }}</span>
</a>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radios-comunitarias-jekyll-theme-0.1.0 _includes/share.html