From 268ed7f8dc7abf2f54ad72f753afd93ed72dc9da Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 27 Mar 2022 12:00:47 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/_default/rss.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/themes/buha/layouts/_default/rss.xml b/themes/buha/layouts/_default/rss.xml index 9ee25717..9617c44f 100644 --- a/themes/buha/layouts/_default/rss.xml +++ b/themes/buha/layouts/_default/rss.xml @@ -13,9 +13,9 @@ {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} -{{- printf "" | safeHTML }} - - + {{ .Site.Title }} {{ .Permalink }} Aktuelles von {{ .Site.Title }} @@ -35,7 +35,15 @@ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} - {{ .Summary | html }} + + {{ $img := index (.Resources.ByType "image") 0 }} + {{ with $img }} + {{ $img := .Resize "640x" }} + {{ printf "]]>" $img.Permalink $img.Width $img.Height | safeHTML }} + {{ end }} + {{ .Summary | html }} + + {{ end }}