aboutsummaryrefslogtreecommitdiff
path: root/content/templates
diff options
context:
space:
mode:
Diffstat (limited to 'content/templates')
-rw-r--r--content/templates/post.html10
-rw-r--r--content/templates/reply.html8
2 files changed, 12 insertions, 6 deletions
diff --git a/content/templates/post.html b/content/templates/post.html
index e35ad64..ea5c28d 100644
--- a/content/templates/post.html
+++ b/content/templates/post.html
@@ -1,11 +1,9 @@
-{# A blog post, mirroring theme/templates/post.html. Everything but the reply footer is
- the shared layout, so this extends it rather than restating it.
+{# A blog post: the shared layout plus the reply snippet.
- Selected by the [[pages]] rule for blog/ in org-ssg.toml; a post that wants a different
- layout says so with #+TEMPLATE:. #}
+ The snippet lives in reply.html so its wording is a file you edit rather than a line
+ buried in a layout — and so emptying that file removes it from every post at once. #}
{% extends "base.html" %}
{% block content %}
{{ body | safe }}
-<div><a href="mailto:[email protected]">Reply via email &rarr;</a></div>
-<div><i>...or, comment on this post on <a href="https://bubbles.town/source/cleberg.net">Bubbles</a>!</i></div>
+{% include "reply.html" %}
{% endblock %}
diff --git a/content/templates/reply.html b/content/templates/reply.html
new file mode 100644
index 0000000..333ffdb
--- /dev/null
+++ b/content/templates/reply.html
@@ -0,0 +1,8 @@
+{# The invitation to reply, kept apart from the layout so it can be edited, emptied or
+ dropped without touching how a post is built.
+
+ Included by post.html, which the [[pages]] rule routes blog posts through. A page that
+ wants it elsewhere says `#+TEMPLATE: post.html` for itself; a post that does not want
+ it says `#+TEMPLATE: base.html`. #}
+<div><a href="mailto:[email protected]">Reply via email &rarr;</a></div>
+<div><i>...or, comment on this post on <a href="https://bubbles.town/source/cleberg.net">Bubbles</a>!</i></div>