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