{{- $pages := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.searchSections -}} {{- $title := lower .Title -}} {{- if eq .Section "events" -}} {{- $pages = where $pages ".Params.when" "ne" nil -}} {{- 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 }} {{ if or (eq .Lastmod .Date) (gt .Lastmod (.Date.AddDate 0 0 -1)) }} {{ $when := .Params.when }} {{ $about := .Params.about }} {{ $covid := .Params.covid }} {{ $contact := .Params.contact }} {{ $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 }} {{ $images := slice }} {{ range .Resources.ByType "image" }} {{ $images = $images | append . }} {{ end }} {{ $hash := slice $when $about $categories $events $covid $contact $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 }} {{- $c := replace .Content "%s

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