Sha256: b68247d71b450a7ea9aef85a131743a2733a86ed2e82440934d6260b96205531

Contents?: true

Size: 765 Bytes

Versions: 2

Compression:

Stored size: 765 Bytes

Contents

{% if page.category_tag_list != false %}
<div class="flex flex-row justify-start flex-wrap list mb2">
  {% if post %}
    {% assign categories = post.categories %}
    {% assign tags = post.tags %}
  {% else %}
    {% assign categories = page.categories %}
    {% assign tags = page.tags %}
  {% endif %}

  {% for category in categories %}
    <a class="f6 br1 mt2 mr1 pa2 link black-60 hover-dark-gray bg-near-white hover-bg-black-10" href="{{ "/categories/" | absolute_url }}#{{ category | slugify }}">{{ category }}</a>
  {% endfor %}

  {% for tag in tags %}
    <a class="f6 br1 mt2 mr1 pa2 link black-60 hover-dark-gray bg-near-white hover-bg-black-10" href="{{ "/tags/" | absolute_url }}#{{ tag | slugify }}">{{ tag }}</a>
  {% endfor %}

</div>
{% endif %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minimal-jekyll-theme-0.1.3 _includes/category_tag_list.html
minimal-jekyll-theme-0.1.2 _includes/category_tag_list.html