diff options
author | Patrick Spek <p.spek@tyil.nl> | 2018-09-20 11:32:56 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2018-09-20 11:32:56 +0200 |
commit | e9365b34190c4a3c54385f963efcf56ecd705112 (patch) | |
tree | 5a0de5c3ae7024cafddf275c1b859699d17d2461 /_pages/posts.html | |
parent | e847b05ae3bae9cc4134a7b5f5f66f0771edfa9e (diff) |
Add year subheadings in posts overview
Diffstat (limited to '_pages/posts.html')
-rw-r--r-- | _pages/posts.html | 62 |
1 files changed, 62 insertions, 0 deletions
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 %} + <h3>{{ this_year }}</h3> + <ul> + {% endif %} + + <li> + <a href="{{ post.url }}">{{ post.title }}</a> + <small>{{ post.date | date: "%Y-%m-%d" }}</small> + </li> + + {% if forloop.last %} + </ul> + {% else %} + {% if this_year != next_year %} + </ul> + <h3>{{ next_year }}</h3> + <ul> + {% endif %} + {% endif %} +{% endfor %} |