mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-21 15:25:08 +01:00
check rssFullText param (new),
display either full content, description, or summary in feed
This commit is contained in:
parent
2583a1c4bf
commit
9cce3e783e
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user