From e9365b34190c4a3c54385f963efcf56ecd705112 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Thu, 20 Sep 2018 11:32:56 +0200 Subject: Add year subheadings in posts overview --- _pages/posts.html | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ _pages/posts.md | 41 ------------------------------------ 2 files changed, 62 insertions(+), 41 deletions(-) create mode 100644 _pages/posts.html delete mode 100644 _pages/posts.md (limited to '_pages') diff --git a/_pages/posts.html b/_pages/posts.html new file mode 100644 index 0000000..3bdf010 --- /dev/null +++ b/_pages/posts.html @@ -0,0 +1,62 @@ +--- +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 +I sometimes write articles to refer to. It saves a lot of time compared to +explaining the same thing over and over again. As such, most articles will +probably be little rants. All of the articles I wrote have been made public on +my site, and can be found below, in alphabetical order. + +If you wish to respond to any article, whether it be criticism, reporting +mistakes or simply because you want to discuss the points, feel free to send me +an email. My email address is listed [on the homepage][home]. If you do, +consider adding a PGP signature or sending it encrypted with [my pgp key][pgp]. +All feedback is greatly appreciated, so do not hesitate to contact me to give +me yours. + +These articles are available under the [Creative Commons (CC BY-SA +3.0)][cc-by-sa] license, which means you are free to use it for any purpose so +long as you keep attribution to me (and preferably also just link to the +original article) and do not relicense the article. + +I'd also like to note that these articles reflect my opinion, and only mine. +Please refrain from accusing other people of holding my opinion for simply +being referenced in my articles. + +[cc-by-sa]: https://creativecommons.org/licenses/by-sa/3.0/ +[home]: / +[pgp]: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x7A6AC285E2D98827 +{% endmarkdown %} + +{% for post in site.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 }}

+