Sha256: 303bbfce816b49202a526008575e4a5e7590c7a2384a4c785db5b2ab75840b32

Contents?: true

Size: 1.85 KB

Versions: 36

Compression:

Stored size: 1.85 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 -%}
      {%- capture tooltip -%}
        data-bs-toggle="tooltip" data-bs-placement="top" title="{{ share.type }}" aria-label="{{ share.type }}"
      {%- endcapture -%}

      {% 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" {{ tooltip }}>
          <share-to-mastodon
            class="share-mastodon"
            message="{{ title }}"
            url="{{ url }}"
            {%- if share.instances -%}
              customInstanceList="{{ share.instances | jsonify | xml_escape }}"
            {%- endif %}
          >
            <i class="fa-fw {{ share.icon }}"></i>
          </share-to-mastodon>
        </button>

        {% continue %}
      {% endif %}

      {% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %}

      <a href="{{ link }}" target="_blank" rel="noopener" {{ tooltip }}>
        <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

36 entries across 36 versions & 7 rubygems

Version Path
jekyll-theme-chirpy-g-1.0.3 _includes/post-sharing.html
jekyll-theme-chirpy-g-1.0.2 _includes/post-sharing.html
jekyll-theme-chirpy-g-1.0.1 _includes/post-sharing.html
jekyll-theme-chirpy-g-1.0.0 _includes/post-sharing.html
jekyll-theme-chirpier-1.0.2 _includes/post-sharing.html
jekyll-theme-chirpier-0.0.4 _includes/post-sharing.html
jekyll-theme-chirpier-1.0.1 _includes/post-sharing.html
jekyll-theme-chirpier-0.0.3 _includes/post-sharing.html
jekyll-theme-chirpier-0.0.2 _includes/post-sharing.html
jekyll-theme-chirpier-0.0.1 _includes/post-sharing.html
jekyll-theme-chirpier-0.0.0 _includes/post-sharing.html
jekyll-theme-chirpier-1.0.0 _includes/post-sharing.html
jekyll-theme-chirpy-7.2.4 _includes/post-sharing.html
jekyll-theme-chirpy-7.2.3 _includes/post-sharing.html
jekyll-theme-chirpy-7.2.2 _includes/post-sharing.html
jekyll-theme-chirpy-7.2.1 _includes/post-sharing.html
jekyll-theme-chirpy-7.2.0 _includes/post-sharing.html
jekyll-theme-chirpy-7.1.1 _includes/post-sharing.html
jekyll-theme-chirpy-7.1.0 _includes/post-sharing.html
Han-theme-1.0.0 _includes/post-sharing.html