layout: default
<div class=“categories-header”>
<h1>Categories</h1>
</div>
{% for category in site.categories %}
<h2>{{ category[0] }}</h2> <ul> {% for posts in category %} {% for post in posts %} {% if post.title != nil %} <li><a href="{{ post.url }}">{{ post.title }}</a></li> {% endif %} {% endfor %} {% endfor %} </ul>
{% endfor %}