Skip to content

Commit fd86e82

Browse files
committed
Add blog-categories.html page to list blog posts by category
1 parent 1736dc0 commit fd86e82

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

blog-categories.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Posts by category
3+
section: blog
4+
---
5+
6+
{% include top.html %}
7+
8+
<div id="content">
9+
<div class="hfeed">
10+
<h2>Posts by category:</h2>
11+
<ul>
12+
{% for category in site.categories %}
13+
<li id="#{{ category | first }}">{{ category | first }}</li>
14+
<ul>
15+
{% for posts in category %}
16+
{% for post in posts %}
17+
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
18+
{% endfor %}
19+
{% endfor %}
20+
</ul>
21+
</li>
22+
{% endfor %}
23+
</ul>
24+
</div><!-- .hfeed -->
25+
</div><!-- #content -->
26+
27+
{% include bottom.html %}

0 commit comments

Comments
 (0)