From 708309f9c25dd69d85833edf410a7a777fdf056ebdf6042f3539520313960452 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <> Date: Sun, 20 Sep 2026 00:00:00 +0000 Subject: End generated capsule pages with a newline The templates gained a final newline, but the gemtext pages they build did not: the base template trimmed its own away, so every .gmi file ended mid-line and was not a POSIX text file either. The web pages and the feeds already ended with one. Stop trimming the newline after the footer partial in the gemtext base template. The footer partial keeps its own trim marker, so that the newline is emitted once rather than twice. Every generated file in the example site, gemtext and web alike, now ends with exactly one newline, and the capsule pages are otherwise byte-identical. Co-Authored-By: Claude Opus 5 --- layouts/baseof.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/baseof.gmi b/layouts/baseof.gmi index 1596a5b..14bfc1c 100644 --- a/layouts/baseof.gmi +++ b/layouts/baseof.gmi @@ -5,4 +5,4 @@ {{ block "main" . }}{{ end }} -{{ partial "footer.gmi" . -}} +{{ partial "footer.gmi" . }} -- cgit v1.2.3