web/_includes/post-sharing.html

28 lines
1 KiB
HTML
Raw Normal View History

<!--
Post sharing snippet
-->
<div class="share-wrapper">
2022-10-18 22:53:47 +03:00
<span class="share-label text-muted mr-1">{{ site.data.locales[site.lang].post.share }}</span>
<span class="share-icons">
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
{% assign title = title | uri_escape %}
{% assign url = page.url | absolute_url | url_encode %}
{% for share in site.data.share.platforms %}
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %}
<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"
2022-10-18 22:53:47 +03:00
title="{{ site.data.locales[site.lang].post.button.share_link.title }}"
data-title-succeed="{{ site.data.locales[site.lang].post.button.share_link.succeed }}">
2021-07-20 20:01:09 +03:00
</i>
</span>
</div>