check rssFullText param (new),

display either full content, description, or summary in feed
This commit is contained in:
Adam Ormsby 2020-04-28 21:32:14 -05:00
parent 2583a1c4bf
commit 9cce3e783e

View File

@ -37,8 +37,14 @@
{{ $featured := $images.GetMatch "{*featured*,*cover*,*thumbnail*}" }}
{{ with $featured }}{{ printf "%s%s%s" "<image src=\"" $featured.Permalink "\"/>"}}{{ end }}
{{ end }}
{{ .Summary | html }}
</description>
{{ if .Site.Params.RssFullText }}{{ .Content | html }}
{{ else }}
{{ with .Description }}{{ . | html }}
{{ else }}{{ .Summary | html }}
{{ end }}
{{ end }}
</description>
</item>
{{ end }}
</channel>