link to Archives page grouped by month; drop Trigger Warning page
authorM. Taylor Saotome-Westlake <ultimatelyuntruethought@gmail.com>
Mon, 23 Mar 2020 06:21:28 +0000 (23:21 -0700)
committerM. Taylor Saotome-Westlake <ultimatelyuntruethought@gmail.com>
Mon, 23 Mar 2020 06:21:28 +0000 (23:21 -0700)
content/pages/trigger-warning.md [deleted file]
notes/tech_tasks.txt
requirements.txt
theme/templates/archives.html [new file with mode: 0644]
theme/templates/base.html

diff --git a/content/pages/trigger-warning.md b/content/pages/trigger-warning.md
deleted file mode 100644 (file)
index 0a4d79e..0000000
+++ /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.
index b35253b..3e9d017 100644 (file)
@@ -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"
 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)
 Pelican bug report or patch re spacing in file
 favicon
 "Read more" breaks (problem: plugin for this uses fixed length cutoff)
index 847c5df..62f11e4 100644 (file)
@@ -2,7 +2,7 @@ blinker==1.4
 docutils==0.14
 feedgenerator==1.9
 html5lib==1.0.1
 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
 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 (file)
index 0000000..187b184
--- /dev/null
@@ -0,0 +1,18 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} - Archives{% endblock %}
+
+{% block content %}
+  <h2>Archives</h2>
+
+  <dl>
+    {% for article in dates %}
+
+        {% if loop.first or loop.previtem.date.month != article.date.month %}
+          <h4><strong>{{ article.date.strftime('%B %Y') }}</strong></h4>
+        {% endif %}
+
+        <dd>{{ article.date.strftime('%d') }} &emsp; <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
+    {% endfor %}
+  </dl>
+{% endblock %}
index b5e19c4..0861d51 100644 (file)
@@ -40,7 +40,9 @@
                {% for p in pages %}
                          <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
                          {% if not loop.last %}-{% endif %}
                {% for p in pages %}
                          <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
                          {% if not loop.last %}-{% endif %}
-                       {% endfor %}
+               {% endfor %}
+                -
+                <a href="{{ SITEURL }}/archives/">Archives</a>
              </nav>
            {% endif %}
            <a href="{{ SITEURL }}" class="title">☆✦ {{ SITENAME }} ✦☆♀ …</a>
              </nav>
            {% endif %}
            <a href="{{ SITEURL }}" class="title">☆✦ {{ SITENAME }} ✦☆♀ …</a>