web/_includes/post-sharing.html

27 lines
994 B
HTML
Raw Normal View History

<!--
Post sharing snippet
-->
<div class="share-wrapper">
<span class="share-label text-muted mr-1">{{ site.data.locales[lang].post.share }}</span>
<span class="share-icons">
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
2021-01-18 18:27:43 +03:00
{% assign url = page.url | absolute_url %}
{% for share in site.data.share.platforms %}
2022-01-23 00:11:14 +03:00
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url | escape %}
<a href="{{ link }}" data-toggle="tooltip" data-placement="top"
title="{{ share.type }}" target="_blank" rel="noopener" aria-label="{{ share.type }}">
<i class="fa-fw {{ share.icon }}"></i>
</a>
{% endfor %}
<i id="copy-link" class="fa-fw fas fa-link small"
2021-07-20 20:01:09 +03:00
data-toggle="tooltip" data-placement="top"
title="{{ site.data.locales[lang].post.button.share_link.title }}"
2022-01-19 12:54:50 +03:00
data-title-succeed="{{ site.data.locales[lang].post.button.share_link.succeed }}">
2021-07-20 20:01:09 +03:00
</i>
</span>
</div>