crappy-reverie/_pages/categories.md
2019-08-08 08:51:01 +02:00

708 B

layout permalink title
page /categories/ Categories
{% for category in site.categories %}
{% capture category_name %}{{ category | first }}{% endcapture %}

<h3 class="category-head">{{ category_name }}</h3>
<a name="{{ category_name | slugize }}"></a>
{% for post in site.categories[category_name] %}
<article class="archive-item">
  <h4><a href="{{ site.baseurl }}{{ post.url }}">{% if post.title and post.title != "" %}{{post.title}}{% else %}{{post.excerpt |strip_html}}{%endif%}</a></h4>
</article>
{% endfor %}
{% endfor %}