blob: 960423a1a4ffcc638b0343bfcd37f4e9ca9851f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{% if site.categories.size != 0 %}
{% for category in site.categories %}
<h1><a class="category" href="{{ '/' | relative_url }}{{ category[0] | slugify: 'pretty' }}/">{{ category[0] }}</a></h1>
<hr/>
<ul>
{% for post in category[1] %}
<li><a href="{{ post.url | relative_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 %}
|