diff options
author | Ailin Nemui <ailin@z30a.localdomain> | 2017-05-24 15:23:58 +0200 |
---|---|---|
committer | Ailin Nemui <ailin@z30a.localdomain> | 2017-05-24 15:25:11 +0200 |
commit | cb234542f7d9f312f793d9f6032083d7301d9de9 (patch) | |
tree | 8fa8b3f4327def1236389d318e9727f176af0e3e /_includes/sb_whatsnew.html | |
parent | c720965981a401c1afbb095476c2fba7f27c9bf0 (diff) | |
download | irssi.github.io-cb234542f7d9f312f793d9f6032083d7301d9de9.zip |
- replace "whatsnew" with yaml
- replace settings nav with php
- add 404
Diffstat (limited to '_includes/sb_whatsnew.html')
-rw-r--r-- | _includes/sb_whatsnew.html | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/_includes/sb_whatsnew.html b/_includes/sb_whatsnew.html index b09ad75..ea74fc5 100644 --- a/_includes/sb_whatsnew.html +++ b/_includes/sb_whatsnew.html @@ -1,4 +1,19 @@ -<p><small>2017-05-12</small> <a href="/2017/05/12/fuzzing-irssi">Introduction to fuzzing Irssi</a> </p> -<p><small>2017-05-06</small> <a href="/2017/05/06/test-sideways-splits"><b>Test</b> horizontal/vertical splits</a> </p> -<p><small>2017-03-12</small> <a href="/2017/03/12/poll-non-utf8-discontinuation"><b>Poll</b> Non-UTF-8 discontinuation</a> </p> -<p><small>2017-03-11</small> <a href="/2017/03/11/irssi-1.0.2-released"><b>Security</b> Irssi 1.0.2 released!</a> </p> +{% comment %} + +Edit /_data/sb_whatsnew.yml to generate the content of this sidebar + +{% endcomment +%}{% for new in site.data.sb_whatsnew +%}{% assign found = 0 +%}{% for post in site.posts +%}{% if post.slug == new.key +%} +<p><small>{{ post.date | date: "%Y-%m-%d" }}</small> <a href="{{ post.url }}">{% if new.tag %}<b>{{ new.tag }}</b> {% endif %}{% if new.title %}{{ new.title }}{% else %}{{ post.title }}{% endif %}</a> </p>{% assign found = 1 %}{% break +%}{% endif +%}{% endfor +%}{% if found == 0 +%} +<p class="bg-danger">#error# {{ new.key }} not found</p>{% + endif +%}{% endfor +%} |