diff options
| author | Christian Cleberg <[email protected]> | 2026-08-11 16:12:19 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-08-11 20:35:15 -0500 |
| commit | 3239e8978f879af87a928866163173f66127e9f1 (patch) | |
| tree | 4ac2ca57a79e5fb8613cc2af4269e9f46f6916c3 /content/templates/post.html | |
| parent | c156621a773f144fb829a63be63b8af33506d975 (diff) | |
| download | cleberg.net-3239e8978f879af87a928866163173f66127e9f1.tar.gz cleberg.net-3239e8978f879af87a928866163173f66127e9f1.tar.bz2 cleberg.net-3239e8978f879af87a928866163173f66127e9f1.zip | |
Make the reply footer a snippet, not a rule
Routing garden notes and /now/ through post.html put the invitation to reply on
them because a directory said so, which is the wrong thing to be automatic — it
is a choice about each page, and I had made it site-wide to chase parity with
the live site.
Those two rules are gone; blog posts keep it. The wording now lives in
templates/reply.html rather than inside post.html, so it can be edited or
emptied without touching how a post is built, and editing it re-renders the 170
pages that include it and nothing else.
Any page opts in for itself with `#+TEMPLATE: post.html`; any post opts out with
`#+TEMPLATE: base.html`.
Diffstat (limited to 'content/templates/post.html')
| -rw-r--r-- | content/templates/post.html | 10 |
1 files changed, 4 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 →</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 %} |
