rss: fix display of hidden subpages #382

This commit is contained in:
Sören Weber 2022-11-12 21:37:23 +01:00
parent 54a44dc69e
commit b3b0b26d4f
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -25,7 +25,7 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
{{- range $pages }}
{{- if and .Permalink .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) }}
{{- if and .Permalink .Title (or (ne (.Scratch.Get "relearnIsHiddenNode") true) (ne .Site.Params.disableSeoHiddenPages true) ) }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>