-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategories.html
More file actions
29 lines (27 loc) · 853 Bytes
/
categories.html
File metadata and controls
29 lines (27 loc) · 853 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
27
28
29
---
layout: page
permalink: /categories/
title: Categories
---
<div class="tag-container">
{% for category in site.categories %} {% capture category_name %}{{ category |
first }}{% endcapture %}
<a class="post-tag" href="/categories/#{{ category_name | slugify }}">
<div class="post-tag-content">{{ category_name }}</div>
</a>
{% endfor %}
</div>
<div id="archives">
{% for category in site.categories %}
<div class="archive-group">
{% capture category_name %}{{ category | first }}{% endcapture %}
<a id="{{ category_name | slugify }}"></a>
<h2 class="category-head">{{ category_name }}</h3>
{% for post in site.categories[category_name] %}
<article class="archive-item">
<h4><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h4>
</article>
{% endfor %}
</div>
{% endfor %}
</div>