From 752904e97736f5552b3dc62dad911b6382fb5496 Mon Sep 17 00:00:00 2001 From: Yoni Date: Sat, 21 Aug 2021 14:37:52 +0300 Subject: [PATCH] In RSS, use page description param if available instead of auto-summary --- layouts/_default/rss.xml | 4 ++-- layouts/_default/taxonomy.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 385a1f6..7763373 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -38,7 +38,7 @@ {{ with .Site.Params.email }}{{.}}{{ with $.Site.Params.myname }} ({{.}}){{end}}{{end}} {{ with .Params.Lastmod }}{{ .Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{end}} {{ .Permalink }} - {{ .Summary | html }} + {{ with .Params.description }}{{ . }}{{ else }}{{ .Summary | html }}{{ end }} {{ if .Site.Params.fullContents }}{{ .Content | html }}{{end}} {{ if .Params.author }}{{ .Params.author }}{{ else if .Site.Params.myname }}{{ .Site.Params.myname }}{{end}} {{ if .Params.image }}featured image{{end}} @@ -78,7 +78,7 @@ {{ with .Site.Params.email }}{{.}}{{ with $.Site.Params.myname }} ({{.}}){{end}}{{end}} {{ with .Params.Lastmod }}{{ .Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{end}} {{ .Permalink }} - {{ .Summary | html }} + {{ with .Params.description }}{{ . }}{{ else }}{{ .Summary | html }}{{ end }} {{ if .Site.Params.fullContents }}{{ .Content | html }}{{end}} {{ if .Params.author }}{{ .Params.author }}{{ else if .Site.Params.myname }}{{ .Site.Params.myname }}{{end}} {{ if .Params.image }}featured image{{end}} diff --git a/layouts/_default/taxonomy.xml b/layouts/_default/taxonomy.xml index dd107ad..36af460 100644 --- a/layouts/_default/taxonomy.xml +++ b/layouts/_default/taxonomy.xml @@ -29,7 +29,7 @@ {{ with .Site.Params.email }}{{.}}{{ with $.Site.Params.myname }} ({{.}}){{end}}{{end}} {{ with .Params.Lastmod }}{{ .Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{end}} {{ .Permalink }} - {{ .Summary | html }} + {{ with .Params.description }}{{ . }}{{ else }}{{ .Summary | html }}{{ end }} {{ if .Site.Params.fullContents }}{{end}} {{ if .Params.author }}{{ .Params.author }}{{ else if .Site.Params.myname }}{{ .Site.Params.myname }}{{end}} {{ if .Params.image }}featured image{{end}}