diff --git a/voussoir.net/writing/generate_site.py b/voussoir.net/writing/generate_site.py index 54efb46..8ab125d 100644 --- a/voussoir.net/writing/generate_site.py +++ b/voussoir.net/writing/generate_site.py @@ -284,6 +284,7 @@ def maketagpage(index, path): path = '/'.join(path) page = jinja2.Template(''' + @@ -293,17 +294,9 @@ def maketagpage(index, path): {% else %} Articles by tag {% endif %} - +

Back to writing

{% if parent %} @@ -343,7 +336,9 @@ def maketagpage(index, path):
{% endif %} +
+ ''').render( parent=parent, index=index, @@ -369,6 +364,7 @@ def write_tag_pages(): def write_writing_index(): page = jinja2.Template(''' + @@ -377,6 +373,7 @@ def write_writing_index(): +

Writing

+
+ ''').render( articles=sorted(ARTICLES.values(), key=lambda a: a.date, reverse=True), articles_edited=sorted(ARTICLES.values(), key=lambda a: a.edited, reverse=True)