2020-02-16 22:01:48 +03:00
|
|
|
<!--
|
|
|
|
Post sharing snippet
|
|
|
|
|
|
|
|
v2.1
|
|
|
|
https://github.com/cotes2020/jekyll-theme-chirpy
|
|
|
|
© 2019 Cotes Chung
|
|
|
|
Published under the MIT License
|
|
|
|
-->
|
|
|
|
|
|
|
|
<div class="share-wrapper">
|
2020-04-06 21:11:50 +03:00
|
|
|
<span class="share-label mr-1">{{ site.data.share.label }}</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 %}
|
|
|
|
{% assign url = page.url | relative_url | prepend: site.url %}
|
|
|
|
|
|
|
|
{% 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">
|
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 %}
|
|
|
|
|
2020-02-29 16:51:18 +03:00
|
|
|
<i class="fa-fw fas fa-link small" onclick="copyLink()"
|
2020-02-16 22:01:48 +03:00
|
|
|
data-toggle="tooltip" data-placement="top" title="Copy link"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</div>
|