diff options
Diffstat (limited to 'templates/blog_archive.html')
-rw-r--r-- | templates/blog_archive.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/blog_archive.html b/templates/blog_archive.html new file mode 100644 index 0000000..df6b810 --- /dev/null +++ b/templates/blog_archive.html | |||
@@ -0,0 +1,14 @@ | |||
1 | {% extends "page.html" %} | ||
2 | |||
3 | {% set is_blog = True %} | ||
4 | |||
5 | {% block contents %} | ||
6 | {% for year, post_set in posts %} | ||
7 | <h2>{{ year }}</h2> | ||
8 | <ul> | ||
9 | {% for post in post_set %} | ||
10 | <li><a href="{{ post.filename|replace('.rst', '.html') }}">{{ post.title }}</a></li> | ||
11 | {% endfor %} | ||
12 | </ul> | ||
13 | {% endfor %} | ||
14 | {% endblock %} | ||