From 9cce3e783eba97987cf313e410af3abba1c63d8a Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Tue, 28 Apr 2020 21:32:14 -0500 Subject: [PATCH] check rssFullText param (new), display either full content, description, or summary in feed --- layouts/_default/rss.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 0a3a38e..13eb5a5 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -37,8 +37,14 @@ {{ $featured := $images.GetMatch "{*featured*,*cover*,*thumbnail*}" }} {{ with $featured }}{{ printf "%s%s%s" ""}}{{ end }} {{ end }} - {{ .Summary | html }} - + + {{ if .Site.Params.RssFullText }}{{ .Content | html }} + {{ else }} + {{ with .Description }}{{ . | html }} + {{ else }}{{ .Summary | html }} + {{ end }} + {{ end }} + {{ end }}