-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.html
More file actions
29 lines (25 loc) · 745 Bytes
/
archive.html
File metadata and controls
29 lines (25 loc) · 745 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: default
title: "Archive"
active: archive
---
{% for tag in site.tags %}
{% assign t = tag | first %}
{% assign posts = tag | last %}
<h2 class="category-key" id="{{ t | downcase }}">{{ t | capitalize }}</h2>
<ul class="year">
{% for post in posts %}
{% if post.tags contains t %}
<li class="module-list-item">
{% if post.lastmod %}
{{ post.lastmod | date: "%Y.%m.%d" }}:
<a href="{{ post.url | relative_url}}">{{ post.title }}</a>
{% else %}
{{ post.date | date: "%Y.%m.%d" }}:
<a href="{{ post.url | relative_url}}">{{ post.title }}</a>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}