fix: redact RSS feeds
This commit is contained in:
parent
b2dba13746
commit
941c59b7a7
1 changed files with 2 additions and 2 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue