2020-02-16 22:01:48 +03:00
|
|
|
<!--
|
|
|
|
Post sharing snippet
|
|
|
|
-->
|
|
|
|
|
|
|
|
<div class="share-wrapper">
|
2021-08-01 16:54:27 +03:00
|
|
|
<span class="share-label text-muted mr-1">{{ site.data.locales[lang].post.share }}</span>
|
2020-02-29 16:51:18 +03:00
|
|
|
<span class="share-icons">
|
2020-02-16 22:01:48 +03:00
|
|
|
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
2022-03-03 15:55:27 +03:00
|
|
|
{% assign title = title | url_encode %}
|
|
|
|
{% assign url = page.url | absolute_url | url_encode %}
|
2020-02-16 22:01:48 +03:00
|
|
|
|
|
|
|
{% for share in site.data.share.platforms %}
|
2022-03-03 15:55:27 +03:00
|
|
|
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %}
|
2020-02-16 22:01:48 +03:00
|
|
|
<a href="{{ link }}" data-toggle="tooltip" data-placement="top"
|
2020-10-27 11:20:22 +03:00
|
|
|
title="{{ share.type }}" target="_blank" rel="noopener" aria-label="{{ share.type }}">
|
2020-02-29 16:51:18 +03:00
|
|
|
<i class="fa-fw {{ share.icon }}"></i>
|
2020-02-16 22:01:48 +03:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
|
2021-09-16 10:38:59 +03:00
|
|
|
<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"
|
2021-09-16 10:38:59 +03:00
|
|
|
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>
|
2020-02-16 22:01:48 +03:00
|
|
|
|
|
|
|
</span>
|
2020-10-26 23:11:21 +03:00
|
|
|
</div>
|