From a5974adf6ae98ccee745ece449f6e44963f0f633 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 25 Jun 2020 14:02:03 -0700 Subject: [PATCH] Enclose index page and tag page in
to fix new CSS. The new CSS rules apply to article and not body, but these pages were all written directly on the body. --- voussoir.net/writing/generate_site.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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

    {% for article in articles %} @@ -396,7 +393,9 @@ def write_writing_index(): {% endif %} {% endfor %}
+
+ ''').render( articles=sorted(ARTICLES.values(), key=lambda a: a.date, reverse=True), articles_edited=sorted(ARTICLES.values(), key=lambda a: a.edited, reverse=True)