Sha256: f8c5f2e7edac899c8e926771d618749f3e65b23ad6864410d00c8f961a5d5891
Contents?: true
Size: 1.97 KB
Versions: 27
Compression:
Stored size: 1.97 KB
Contents
<!-- Post sharing snippet --> <div class="share-wrapper d-flex align-items-center"> <span class="share-label text-muted">{{ site.data.locales[include.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 -%} {% if share.type == 'Mastodon' %} <script defer type="module" src="https://cdn.jsdelivr.net/npm/@justinribeiro/share-to-mastodon/+esm"></script> <button class="btn text-start" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ share.type }}" aria-label="{{ share.type }}" > <share-to-mastodon class="share-mastodon" message="{{ title }}" url="{{ url }}" {%- if share.instances -%} customInstanceList="{{ share.instances | jsonify | xml_escape }}" {%- endif %} > <i class="{{ share.icon }}"></i> </share-to-mastodon> </button> {% continue %} {% endif %} {% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %} <a href="{{ link }}" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ share.type }}" target="_blank" rel="noopener" aria-label="{{ share.type }}" > <i class="fa-fw {{ share.icon }}"></i> </a> {% endfor %} <button id="copy-link" aria-label="Copy link" class="btn small" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ site.data.locales[include.lang].post.button.share_link.title }}" data-title-succeed="{{ site.data.locales[include.lang].post.button.share_link.succeed }}" > <i class="fa-fw fas fa-link pe-none fs-6"></i> </button> </span> </div>
Version data entries
27 entries across 27 versions & 1 rubygems