offTheRecord: exclude posts from RSS feeds

This commit is contained in:
roneo.org 2022-01-05 08:37:02 +01:00
parent c32906296a
commit fc929b774c

View File

@ -32,7 +32,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 .Params.offTheRecord true) (ne .Layout `archives`) }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>