Skip to content

Commit a794b7f

Browse files
committed
Show date in list of posts by categories
1 parent 33c5855 commit a794b7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blog/categories.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<h2>Posts by category:</h2>
99
<ul>
1010
{% for category in site.categories %}
11-
<li id="#{{ category | first }}">{{ category | first | capitalize }}</li>
11+
<h5 id="#{{ category | first }}">&raquo; {{ category | first | capitalize }}</h5>
1212
<ul>
1313
{% for posts in category %}
1414
{% for post in posts %}
15-
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
15+
<li><a href="{{ post.url }}">{{ post.title }}</a> <span class="byline">&dash; {{ post.date | date: "%B %d, %Y" }}</span></li>
1616
{% endfor %}
1717
{% endfor %}
1818
</ul>

0 commit comments

Comments
 (0)