exclude pages marked as hiddenPage

This commit is contained in:
Aniket Teredesai
2023-02-18 17:07:02 +05:30
parent 1f7ff80687
commit f8aedf20e6
6 changed files with 12 additions and 8 deletions

View File

@ -33,7 +33,7 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
{{ range $pages }}
{{- if and (ne .Layout `search`) (ne .Layout `archives`) }}
{{- if and (ne .Layout `search`) (ne .Layout `archives`) (ne .Params.hiddenPage true) }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>