-
Notifications
You must be signed in to change notification settings - Fork 1
/
archives.html
48 lines (46 loc) · 1.37 KB
/
archives.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
layout: default
title: Archives
icon: archive
breadcrumb: true
---
<div class="archives posts">
<div class="archive-group">
<h4 class="title is-4">All Categories</h4>
{% for category in site.categories %}
{% capture category_name %}{{ category | first }}{% endcapture %}
<!--
<a href="/category/{{ category_name }}/" class="tag is-link">
{{ category_name }}
</a>
-->
<span class="tag is-link">{{ category_name }}</span>
{% endfor %}
</div>
<div class="archive-group">
<h4 class="title is-4">All Tags</h4>
{% for tag in site.tags %}
{% capture tag_name %}{{ tag | first }}{% endcapture %}
<!--
<a href="/tag/{{ tag_name }}/" class="tag is-info">
{{ tag_name }}
</a>
-->
<span class="tag is-info">{{ tag_name }}</span>
{% endfor %}
</div>
{% assign posts_group_by_month = site.posts | group_by_exp: "post", "post.date | date: '%Y %b'" %}
{% for month_posts in posts_group_by_month %}
<div class="archive-group">
<!--
<h4 class="title is-4"><a href="{{ month_posts.name | date: '/%Y/%m/' }}">{{ month_posts.name }}</a></h4>
-->
<h4 class="title is-4">{{ month_posts.name }}</h4>
<ul class="post-list">
{% for post in month_posts.items %}
{% include post-list.html %}
{% endfor %}
</ul>
</div>
{% endfor %}
</div>