-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcategories.html
More file actions
26 lines (24 loc) · 774 Bytes
/
categories.html
File metadata and controls
26 lines (24 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
layout: page
permalink: /categories/
title: Posts by Category
---
<div id="archives">
{% assign categories_sorted = site.categories | sort %}
{% for category in categories_sorted %}
<div class="archive-group">
{% capture category_name %}{{ category | first }}{% endcapture %}
<div id="#{{ category_name | slugify }}"></div>
<p></p>
<h3 class="category-head"><i class="fa fa-tags fa-fw" aria-hidden="true"></i> {{ category_name }}</h3>
<a name="{{ category_name | slugify }}"></a>
{% for post in site.categories[category_name] %}
<article class="archive-item">
<ul>
<li><h4><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h4></li>
</ul>
</article>
{% endfor %}
</div>
{% endfor %}
</div>