From 3f7788402a0a57a717a77cfd32c336cd11ea4e30 Mon Sep 17 00:00:00 2001 From: David Amador Date: Thu, 1 Feb 2024 21:05:35 +0000 Subject: [PATCH] Only write in RSS if ShotFullTextinRSS and .Content has something --- layouts/_default/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index eb888af..342986d 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -73,7 +73,7 @@ {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} {{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}} - {{- if site.Params.ShowFullTextinRSS }} + {{- if and site.Params.ShowFullTextinRSS .Content }} {{ (printf "" .Content) | safeHTML }} {{- end }}