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 }}