🐛 Fix: disable encrypted articles from rendering to rss (fixed #374)

This commit is contained in:
Cell
2023-11-06 15:42:35 +08:00
parent c2bb7e0f80
commit 02dda642ea
+1
View File
@@ -37,6 +37,7 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{- range where .Site.RegularPages "Type" "posts" | first (.Site.Params.home.rss | default 10) -}}
{{- if .Params.password }}{{ continue }}{{ end -}}
{{- dict "Page" . "Site" .Site | partial "rss/item.html" -}}
{{- end -}}
</channel>