Allow certain pages to be excluded from RSS feed (#1833)

* Allow certain pages to be excluded from RSS feed

This line adds support for the possibility to exclude a certain page from the RSS feed by adding a param to the front matter:

```
---
hiddenInRss: true
---
```

---------

Co-authored-by: Gerrit Beine <mail@gerritbeine.com>
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
This commit is contained in:
Gerrit Beine
2026-04-05 15:01:03 +02:00
committed by GitHub
parent 10d3dcc0e0
commit 50745e5e2f
+1
View File
@@ -26,6 +26,7 @@
{{- else }}
{{- $pages = $pctx.Pages }}
{{- end }}
{{- $pages = where $pages "Params.hiddenInRss" "!=" true -}}
{{- $limit := site.Config.Services.RSS.Limit }}
{{- if ge $limit 1 }}
{{- $pages = $pages | first $limit }}