From 70a2c42a5eef1dab2b7ab75e3c7f6ffc8c8c1959 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Fri, 5 Feb 2021 09:55:25 +0100
Subject: Move source files into src
---
src/_layouts/archive.html | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 src/_layouts/archive.html
(limited to 'src/_layouts/archive.html')
diff --git a/src/_layouts/archive.html b/src/_layouts/archive.html
new file mode 100644
index 0000000..c794c22
--- /dev/null
+++ b/src/_layouts/archive.html
@@ -0,0 +1,39 @@
+---
+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 %}
+ {% assign this_year = post.date | date: "%Y" %}
+
+ {% if this_year != prev_year %}
+ {% if forloop.first != true %}
+
+ {% endif %}
+
+ {{ this_year }}
+
+ {% endif %}
+
+ {% assign prev_year = post.date | date: "%Y" %}
+{% endfor %}
--
cgit v1.1