aboutsummaryrefslogtreecommitdiff
path: root/development/libs/barrel/docs/blue-penguin/templates/archives.html
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 20:17:22 +0100
committerMx Kookie <kookie@spacekookie.de>2020-12-21 05:19:21 +0100
commita9f4dd41c11bc4255823ebad7ceabf033cf32ecf (patch)
treed91064e96e60f444076c9ffc122a47afe3b22a72 /development/libs/barrel/docs/blue-penguin/templates/archives.html
parent534807c7a3a3b96d219ec0ce9bb0b3029aa1bdd9 (diff)
Add 'development/libs/barrel/' from commit 'f3b8ab47d3a3ad8d43dc2b89a5eec1c4e87b033d'
git-subtree-dir: development/libs/barrel git-subtree-mainline: 518551bfa6ef7d6508b425afa4bfb3ddbd418141 git-subtree-split: f3b8ab47d3a3ad8d43dc2b89a5eec1c4e87b033d
Diffstat (limited to 'development/libs/barrel/docs/blue-penguin/templates/archives.html')
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/archives.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/development/libs/barrel/docs/blue-penguin/templates/archives.html b/development/libs/barrel/docs/blue-penguin/templates/archives.html
new file mode 100644
index 000000000000..73c53bae8b09
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/archives.html
@@ -0,0 +1,22 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} | Archives{% endblock %}
+{% block content %}
+
+ <h1>Archives</h1>
+
+ {# based on http://stackoverflow.com/questions/12764291/jinja2-group-by-month-year #}
+
+ {% for year, year_group in dates|groupby('date.year')|reverse %}
+ {% for month, month_group in year_group|groupby('date.month')|reverse %}
+ <h4 class="date">{{ (month_group|first).date|strftime('%b %Y') }}</h4>
+ <div class="post archives">
+ <ul>
+ {% for article in month_group %}
+ <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endfor %}
+ {% endfor %}
+{% endblock %}