From 3239e8978f879af87a928866163173f66127e9f1 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Tue, 11 Aug 2026 16:12:19 -0500 Subject: Make the reply footer a snippet, not a rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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`. --- content/templates/post.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'content/templates/post.html') 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 }} -
Reply via email →
-
...or, comment on this post on Bubbles!
+{% include "reply.html" %} {% endblock %} -- cgit v1.2.3