Sha256: 7f04e0e46d7fafd22d821f8cfb7a13f313e1cc37859e1d4dbdfafb1b9e4d89f2

Contents?: true

Size: 760 Bytes

Versions: 3

Compression:

Stored size: 760 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-black-60 bg-near-white hover-bg-black-10" href="{{ "/category/" | absolute_url }}{{ category | slugify }}/">{{ category }}</a>
  {% endfor %}

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

</div>
{% endif %}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minimal-jekyll-theme-0.2.1 _includes/category_tag_list.html
minimal-jekyll-theme-0.2.0 _includes/category_tag_list.html
minimal-jekyll-theme-0.1.4 _includes/category_tag_list.html