mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-25 01:05:07 +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,7 +37,13 @@
|
||||
{{ $featured := $images.GetMatch "{*featured*,*cover*,*thumbnail*}" }}
|
||||
{{ with $featured }}{{ printf "%s%s%s" "<image src=\"" $featured.Permalink "\"/>"}}{{ end }}
|
||||
{{ end }}
|
||||
{{ .Summary | html }}
|
||||
|
||||
{{ if .Site.Params.RssFullText }}{{ .Content | html }}
|
||||
{{ else }}
|
||||
{{ with .Description }}{{ . | html }}
|
||||
{{ else }}{{ .Summary | html }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user