Sha256: a56fedda2381a066d93b12bfcff035a58120544327b0a244892f882a4bd738b0

Contents?: true

Size: 1.37 KB

Versions: 2

Compression:

Stored size: 1.37 KB

Contents

<a href="{{ include.url }}">

  {% if include.url contains "github.com" %}
    <span class="ico">
      <i class="fab fa-github"></i>
    </span>
    <span class="lbl">
      {{ include.title | default: "GitHub" }}
    </span>

  {% elsif include.url contains "rubygems.org" %}
    <span class="ico">
      <i class="far fa-gem"></i>
    </span>
    <span class="lbl">
      {{ include.title | default: "Gem" }}
    </span>

  {% elsif include.url contains "crates.io/crates" %}
    <span class="ico">
      <i class="far fa-cubes"></i>
    </span>
    <span class="lbl">
      {{ include.title | default: "Crate" }}
    </span>

  {% elsif include.url contains "rubydoc" %}
    <span class="ico">
      <i class="far fa-gem"></i>
    </span>
    <span class="lbl">
      {{ include.title | default: "RubyDoc" }}
    </span>

  {% elsif include.url contains "docs.rs" %}
    <span class="ico">
      <i class="far fa-book"></i>
    </span>
    <span class="lbl">
      {{ include.title | default: "Docs.rs" }}
    </span>

  {% elsif include.url contains "ietf.org/html/rfc" %}
    <span class="lbl">
      {{ include.title | default: "IETF RFC" }}
    </span>

  {% elsif include.url contains "datatracker.ietf.org" %}
    <span class="lbl">
      {{ include.title | default: "IETF document" }}
    </span>

  {% else %}
    <span class="lbl">
      {{ include.title }}
    </span>

  {% endif %}
</a>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-open-project-2.0.1 _includes/external-link.html
jekyll-theme-open-project-2.0 _includes/external-link.html