From 87a8fc714efe7d1e14f9e53af26620b50147d763 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 8 Apr 2026 19:02:34 +0100 Subject: [PATCH] fix(rss): hide private/unlisted pages in RSS feed --- modules/blox/layouts/rss.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/blox/layouts/rss.xml b/modules/blox/layouts/rss.xml index bb636625..f0047014 100644 --- a/modules/blox/layouts/rss.xml +++ b/modules/blox/layouts/rss.xml @@ -2,6 +2,7 @@ {{- /* Upstream Hugo bug - RSS dates can be in future: https://github.com/gohugoio/hugo/issues/3918 */ -}} {{- $page_context := cond .IsHome site . -}} {{- $pages := $page_context.RegularPages -}} +{{- $pages = where $pages "Params.private" "!=" true -}} {{- $limit := site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}}