From: M. Taylor Saotome-Westlake Date: Mon, 23 Mar 2020 06:21:28 +0000 (-0700) Subject: link to Archives page grouped by month; drop Trigger Warning page X-Git-Url: http://unremediatedgender.space/source?a=commitdiff_plain;h=5dab5bb125484dc1af6d1f876f3232e36f4ad12b;p=Ultimately_Untrue_Thought.git link to Archives page grouped by month; drop Trigger Warning page --- diff --git a/content/pages/trigger-warning.md b/content/pages/trigger-warning.md deleted file mode 100644 index 0a4d79e..0000000 --- a/content/pages/trigger-warning.md +++ /dev/null @@ -1,3 +0,0 @@ -Title: Trigger Warning - -If you are the sort of person who needs trigger warnings for things like sexism, transphobia, _&c._, you might not want to read this blog!—I'm not _trying_ to be offensive, of course, but I _really don't care_ if I accidentally hurt someone's feelings in the course of trying to explain my model of reality or even just be funny. diff --git a/notes/tech_tasks.txt b/notes/tech_tasks.txt index b35253b..3e9d017 100644 --- a/notes/tech_tasks.txt +++ b/notes/tech_tasks.txt @@ -7,8 +7,6 @@ verify my domain with Search Console so that I can see search keywords restrict "fiction" to "longform" (not dialogues) (I made the opposite call at some point, and I think I want to reverse it) 404 page?? glitchiness in "Editorial Process" -link to archives page -archives group posts by month Pelican bug report or patch re spacing in file favicon "Read more" breaks (problem: plugin for this uses fixed length cutoff) diff --git a/requirements.txt b/requirements.txt index 847c5df..62f11e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ blinker==1.4 docutils==0.14 feedgenerator==1.9 html5lib==1.0.1 -Jinja2==2.9.6 +Jinja2==2.11.1 Markdown==2.6.9 MarkupSafe==1.0 pelican==3.7.1 diff --git a/theme/templates/archives.html b/theme/templates/archives.html new file mode 100644 index 0000000..187b184 --- /dev/null +++ b/theme/templates/archives.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Archives{% endblock %} + +{% block content %} +

Archives

+ +
+ {% for article in dates %} + + {% if loop.first or loop.previtem.date.month != article.date.month %} +

{{ article.date.strftime('%B %Y') }}

+ {% endif %} + +
{{ article.date.strftime('%d') }}   {{ article.title }}
+ {% endfor %} +
+{% endblock %} diff --git a/theme/templates/base.html b/theme/templates/base.html index b5e19c4..0861d51 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -40,7 +40,9 @@ {% for p in pages %} {{ p.title }} {% if not loop.last %}-{% endif %} - {% endfor %} + {% endfor %} + - + Archives {% endif %} ☆✦ {{ SITENAME }} ✦☆♀ …