fix: redact RSS feeds

This commit is contained in:
Ben Goldsworthy 2023-12-13 17:38:59 +00:00
parent b2dba13746
commit 941c59b7a7

View file

@ -2,9 +2,9 @@
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- $pages = where $pctx.RegularPages "Params.redact" "ne" true -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- $pages = where $pctx.Pages "Params.redact" "ne" true -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}