From 13934914c0cf8bf359938dcc19dbea82fe33db61 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Wed, 10 Jun 2020 11:01:19 +0200
Subject: Implement tag pages
---
_layouts/archive.html | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 _layouts/archive.html
(limited to '_layouts/archive.html')
diff --git a/_layouts/archive.html b/_layouts/archive.html
new file mode 100644
index 0000000..4c30f96
--- /dev/null
+++ b/_layouts/archive.html
@@ -0,0 +1,40 @@
+---
+layout: default
+---
+
+{% markdown %}
+## Blog posts tagged with #{{ page.title | slugify }}
+{% endmarkdown %}
+
+{% include posts-intro.md %}
+
+{% for post in page.posts %}
+ {% if post.wip %}{% continue %}{% endif %}
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
+ {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
+
+ {% if forloop.first %}
+ {{ this_year }}
+
+ {% else %}
+ {% if this_year != next_year %}
+
+ {{ next_year }}
+
+ {% endif %}
+ {% endif %}
+{% endfor %}
--
cgit v1.1