Sha256: 26a97fcacbff47680f6319bbdea60785b6e690bc314561a9d71a36637c368abd

Contents?: true

Size: 628 Bytes

Versions: 4

Compression:

Stored size: 628 Bytes

Contents

{% comment %}
  Check if we have a tags page active before linking to it.
{% endcomment %}
{% assign tags_page = false %}
{% for node in site.pages %}
  {% if node.layout == "tags" %}
    {% assign tags_page = node %}
  {% endif %}
{% endfor %}

<div class="post-tags">
  {% for tag in include.post.tags %}
    {% if tags_page %}
    <a href="{{ tags_page.url | relative_url }}#{{ tag | slugify }}">
    {% else %}<span>{% endif %}
      <span class="icon">
        {% include svg/tags.svg %}
      </span>&nbsp;<span class="tag-name">{{ tag }}</span>
    {% if tags_page %}</a>{% else %}</span>{% endif %}
  {% endfor %}
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-theme-hydeout-4.2.0 _includes/post-tags.html
jekyll-theme-hydeout-4.1.0 _includes/post-tags.html
jekyll-theme-hydeout-4.0.2 _includes/post-tags.html
jekyll-theme-hydeout-4.0.1 _includes/post-tags.html