From 50d37d355ab4e2c91a33490580a90ded162d6b02 Mon Sep 17 00:00:00 2001 From: Nalysius Date: Sat, 9 Mar 2024 12:02:58 +0100 Subject: [PATCH] Print the page description in RSS feed The RSS feed used to print the first chars of the page in the "description" field. Since there is a description at the page level, it's now displayed instead. It should provide a cleaner and complete description. --- layouts/posts/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/posts/rss.xml b/layouts/posts/rss.xml index cf5994b..c215c54 100644 --- a/layouts/posts/rss.xml +++ b/layouts/posts/rss.xml @@ -19,7 +19,7 @@ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Params.author.email }}{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} - {{ .Summary | html }} + {{ printf `` .Page.Params.description | safeHTML }} {{ printf `` .Content | safeHTML }} {{ end }}