{{- $pctx := . -}} {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} {{- $pages := slice -}} {{- if or $.IsHome $.IsSection -}} {{- $pages = $pctx.RegularPages -}} {{- else -}} {{- $pages = $pctx.Pages -}} {{- end -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} {{ $pages = $pages.ByLastmod.Reverse }} {{- printf "" | safeHTML }} {{ .Site.Title }} {{ .Permalink }} Aktuelles von {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} {{ range where $pages "Type" "in" .Site.Params.searchSections }} {{ $when := .Params.when }} {{ $about := .Params.about }} {{ $covid := .Params.covid }} {{ $registeremail := .Params.registeremail }} {{ $price := .Params.price }} {{ $featured := .Params.featured }} {{ $categories := slice }} {{ range .Params.categories }} {{ $categories = $categories | append . }} {{ end }} {{ $events := slice }} {{ range .Params.events }} {{ $events = $events | append . }} {{ end }} {{ $tags := slice }} {{ range .Params.tags }} {{ $tags = $tags | append . }} {{ end }} {{ $hash := slice $when $about $categories $events $covid $registeremail $price $price $featured $tags .Date .Lastmod .Title .Content }} {{ $hash = delimit $hash ", " }} {{ $hash = md5 $hash }} {{ .Title }} {{ .Permalink }} {{ .Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }}-{{ $hash }} {{ $updated := "" }} {{ if gt .Lastmod.Unix .Date.Unix }} {{ .Lastmod.Unix }} {{ .Date.Unix }} {{ $updated = i18n "updated" }} {{ end }} {{- $c := .Content -}} {{- $c := replace $c "%s

%s" $when $c -}} {{- end -}} {{- if ne $updated "" -}} {{- $c = printf "

%s

%s" $updated $c -}} {{- end -}} {{- $img := index (.Resources.ByType "image") 0 -}} {{- with $img -}} {{- $img := .Resize "640x" -}} {{- printf "]]>" $c $img.Permalink $img.Width $img.Height | safeHTML -}} {{ else }} {{- printf "" $c | safeHTML -}} {{- end -}}
{{ end }}