mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-21 23:35: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*}" }}
|
{{ $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 }}
|
|
||||||
</description>
|
{{ if .Site.Params.RssFullText }}{{ .Content | html }}
|
||||||
|
{{ else }}
|
||||||
|
{{ with .Description }}{{ . | html }}
|
||||||
|
{{ else }}{{ .Summary | html }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</description>
|
||||||
</item>
|
</item>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</channel>
|
</channel>
|
||||||
|
Loading…
Reference in New Issue
Block a user