blob: c5a60f34aa762279e0d7100468f9f083183d4d10 (
plain) (
tree)
|
|
{% if site.categories.size != 0 %}
{% for category in site.categories %}
<h1><a class="category" href="{{ site.baseurl }}/categories/{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1>
<hr/>
<ul>
{% for post in category[1] %}
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} — {{ post.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
{% else %}
<p>Sorry, no posts have been added yet.</p>
<hr/>
{% endif %}
|