-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.html
32 lines (30 loc) · 898 Bytes
/
categories.html
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
30
31
32
---
layout: default
permalink: /categories/
title: Categories
---
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">Categories</h1>
</header>
<div id="archives">
{% for category in site.categories %}
<div class="archive-group">
{% capture category_name %}{{ category | first }}{% endcapture %}
<div id="#{{ category_name | slugize }}"></div>
<p></p>
<h2 class="category-head">{{ category_name }}</h2>
<a name="{{ category_name | slugize }}"></a>
{% for post in site.categories[category_name] %}
<article class="archive-item">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y"
-%}
<h4>
<a href="{{ site.baseurl }}{{ post.url }}"
>{{post.title}} | {{post.date | date: date_format }}</a
>
</h4>
</article>
{% endfor %}
</div>
{% endfor %}
</div>