Skip to content

Commit

Permalink
Allow setting ShowFullTextinRSS in individual pages
Browse files Browse the repository at this point in the history
Currently only the site-wide ShowFullTextinRSS setting is effective. Use
`.Param` so that one can specify ShowFullTextinRSS for individual posts.
  • Loading branch information
xuhdev committed Jun 25, 2024
1 parent 9ea3bb0 commit 86a6a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 86a6a4c

Please sign in to comment.