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