Skip pages with rss: false in the frontmatter

This commit is contained in:
VisruthSK 2025-02-09 20:21:04 -08:00
parent c3286b77b8
commit 2ec59f5ed7

View file

@ -57,7 +57,7 @@
{{- with .OutputFormats.Get "RSS" }} {{- with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end }} {{- end }}
{{- range $pages }} {{- range $pages }}{{ if ne .Params.rss false }}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>