From 6d47d42d3a15010926d94b6a1e4912ef7fc105da Mon Sep 17 00:00:00 2001 From: teldra Date: Tue, 5 Apr 2022 11:05:52 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/_default/rss.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/themes/buha/layouts/_default/rss.xml b/themes/buha/layouts/_default/rss.xml index 165fc271..3c01a821 100644 --- a/themes/buha/layouts/_default/rss.xml +++ b/themes/buha/layouts/_default/rss.xml @@ -30,6 +30,10 @@ {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} {{ range where $pages "Type" "in" .Site.Params.searchSections }} + {{ $when := "" }} + {{ if and (ne .Params.when "") (ne .Params.when nil) }} + {{ $when = .Params.when }} + {{ end }} {{ .Title }} {{ .Permalink }} @@ -37,6 +41,8 @@ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }}-{{ .Lastmod }} + {{ if and (ne $when "") (ne $when nil) }}{{ printf "%s

]]>" $when | safeHTML }}{{ end }} + {{ printf "" .Content | safeHTML }} {{ $img := index (.Resources.ByType "image") 0 }} {{ with $img }}