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 -}} {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}} {{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}} {{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}} {{- $pages = where $pctx.RegularPages "Params.redact" "ne" true -}}
{{- else -}} {{- else -}}
{{- $pages = $pctx.Pages -}} {{- $pages = where $pctx.Pages "Params.redact" "ne" true -}}
{{- end -}} {{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}} {{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}} {{- if ge $limit 1 -}}