Allow setting ShowFullTextinRSS in individual pages

Currently only the site-wide ShowFullTextinRSS setting is effective. Use
`.Param` so that one can specify ShowFullTextinRSS for individual posts.
This commit is contained in:
Hong Xu 2024-06-24 17:22:49 -07:00
parent 9ea3bb0e1f
commit 86a6a4c07a

View file

@ -73,7 +73,7 @@
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ .Permalink }}</guid>
<description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description>
{{- if and site.Params.ShowFullTextinRSS .Content }}
{{- if and (.Param "ShowFullTextinRSS") .Content }}
<content:encoded>{{ (printf "<![CDATA[%s]]>" .Content) | safeHTML }}</content:encoded>
{{- end }}
</item>