From b2e2ebef4f5f304884cbf86e73a000d6ee2d0a32a421e5aa55662a2255f7e364 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <> Date: Sun, 20 Sep 2026 00:00:00 +0000 Subject: Link the homepage feed from the homepage The homepage was the one listing page with a feed but no link to it, so a reader could only find it through the autodiscovery element in the document head, which the capsule has no equivalent of. Sites worked around this by adding the feed to the navigation links by hand. Add a feeds section to both homepage templates, modelled on the one the taxonomy, term and section templates carry, and place it below the navigation links and above the entry list. As on those pages, it is rendered only when the home kind lists the Atom output format, so a site that omits the format gains nothing to link. The example site's homepage gains the section in both output formats and is otherwise byte-identical, as are the pages of every other kind. Co-Authored-By: Claude Opus 5 --- layouts/home.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'layouts/home.html') diff --git a/layouts/home.html b/layouts/home.html index b3dcdd0..5a8368b 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -12,6 +12,10 @@ {{ end }} + {{ with .OutputFormats.Get "Atom" }} +

{{ i18n "feeds" }}

+

{{ emojify ":link:" }} {{ i18n "atomFeed" }}

+ {{ end }} {{ with (where .Site.RegularPages "Section" "entry").ByPublishDate.Reverse }}

{{ i18n "journalEntries" }}

{{ range . }} -- cgit v1.2.3