aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <>2026-09-18 00:00:00 +0000
committerNicholas Johnson <>2026-09-19 16:06:44 -0400
commit17c300ebd76f9f849fcde61cbdf2049a0a52d75b1139d7ad8d8666a6a0b00f17 (patch)
treeaa970c471a3af803cbc888232f7fd6503c68d70907c419260d173090c424aa85
parent0dc2dc8ad469797ce87fdeceae6af63a11ba996718dd335ecb0633a50577d627 (diff)
downloadhugo-theme-journal-17c300ebd76f9f849fcde61cbdf2049a0a52d75b1139d7ad8d8666a6a0b00f17.tar.gz
hugo-theme-journal-17c300ebd76f9f849fcde61cbdf2049a0a52d75b1139d7ad8d8666a6a0b00f17.zip
Limit home feeds to journal entries
The homepage lists only pages in the "entry" section, but its feeds ranged over every regular page. Standalone pages such as an about page were therefore published to subscribers while never appearing on the homepage itself. Apply the same section filter the homepage templates use, so the feed and the page it describes agree on what an entry is. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
-rw-r--r--layouts/home.atom.xml2
-rw-r--r--layouts/home.gemini_atom.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/home.atom.xml b/layouts/home.atom.xml
index e036404..923e3cb 100644
--- a/layouts/home.atom.xml
+++ b/layouts/home.atom.xml
@@ -21,7 +21,7 @@
{{- end }}
{{- end -}}
-{{- $pages := .Site.RegularPages }}
+{{- $pages := where .Site.RegularPages "Section" "entry" }}
{{- $limit := .Site.Config.Services.RSS.Limit }}
{{- if ge $limit 1 }}
{{- $pages = first $limit $pages }}
diff --git a/layouts/home.gemini_atom.xml b/layouts/home.gemini_atom.xml
index 491b9c2..5bd3a52 100644
--- a/layouts/home.gemini_atom.xml
+++ b/layouts/home.gemini_atom.xml
@@ -21,7 +21,7 @@
{{- end }}
{{- end -}}
-{{- $pages := .Site.RegularPages }}
+{{- $pages := where .Site.RegularPages "Section" "entry" }}
{{- $limit := .Site.Config.Services.RSS.Limit }}
{{- if ge $limit 1 }}
{{- $pages = first $limit $pages }}