summaryrefslogtreecommitdiff
path: root/src/_pages/posts.html
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-02-05 09:55:25 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-02-05 09:55:25 +0100
commit70a2c42a5eef1dab2b7ab75e3c7f6ffc8c8c1959 (patch)
treec30a3e1d52e7a92fe3866f9833aa77ac4092eef4 /src/_pages/posts.html
parent1d60b596b53202c0814663ed53b4279b40e05154 (diff)
Move source files into src
Diffstat (limited to 'src/_pages/posts.html')
-rw-r--r--src/_pages/posts.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/_pages/posts.html b/src/_pages/posts.html
new file mode 100644
index 0000000..4f10758
--- /dev/null
+++ b/src/_pages/posts.html
@@ -0,0 +1,44 @@
+---
+layout: default
+permalink: /posts/
+title: Blog posts
+description: >
+ I occasionally write blogposts about things I find interesting. These are
+ usually programming, security or privacy related.
+---
+
+{% markdown %}
+## Blog posts
+{% endmarkdown %}
+
+{% include posts-intro.md %}
+
+{% for post in site.posts %}
+ {% if post.wip %}{% continue %}{% endif %}
+ {% assign this_year = post.date | date: "%Y" %}
+
+ {% if this_year != prev_year %}
+ {% if forloop.first != true %}
+ </ul>
+ {% endif %}
+
+ <h3>{{ this_year }}</h3>
+ <ul>
+ {% endif %}
+
+ <li>
+ <a href="{{ post.url }}">{{ post.title }}</a>
+ <small>
+ {{ post.date | date: "%Y-%m-%d" }}
+ {% for tag in post.tags %}
+ <a href="{{ site.baseurl | prepend: site.url }}/tag/{{ tag | slugify }}">#{{ tag | slugify }}</a>
+ {% endfor %}
+ </small>
+ </li>
+
+ {% if forloop.last %}
+ </ul>
+ {% endif %}
+
+ {% assign prev_year = post.date | date: "%Y" %}
+{% endfor %}