{{ define "content" }}
{{ $metas := dict "when" .Params.when "price" .Params.price "contact_mail" .Params.contact_mail "covid" .Params.covid "insta" .Params.insta }} {{ $banner := slice }} {{ $image := slice }} {{ $thumb := "" }} {{ if .Resources.GetMatch "banner*" }} {{ $banner = slice (.Resources.GetMatch "banner*") }} {{ end }} {{ if .Resources.ByType "image" }} {{ $image = .Resources.ByType "image" }} {{ end }} {{ $image = (index (complement $banner $image) 0) }} {{ if $banner }} {{ $image = (index $banner 0) }} {{ end }} {{ $image = .Resources.GetMatch (string $image) }} {{ if ne $image nil }} {{ $thumb1 := $image.Fill "1280x480 smart"}} {{ $thumb = $image}} {{ end }} {{ partial "snippets/article_metadata" $metas }} {{- if .Description -}}

{{ .Description }}

{{ end }} {{ $count_href := .TableOfContents | strings.Count "href" }} {{ if ge $count_href 4 }}
Inhaltsverzeichnis
{{ .TableOfContents }}
{{ end }} {{ $content := .Content }} {{ if or .Content (.Resources.ByType "image")}}
{{- if .Content -}} {{- $content -}} {{ end }} {{ if .Resources.ByType "image" }} {{ range .Resources.ByType "image" }} {{ $picname := . }} {{ if not (or (in $content $picname ) (hasPrefix $picname "banner") )}} {{ . }}
{{ end }} {{ end }} {{ end }}
{{ end }}
{{ end }} {{ define "sidebar" }} {{ if ne .Type "tools" }} {{ end }} {{ end }} {{ define "inner_footer" }} {{ if and (eq .Kind "page") (or (eq .Section "news") (eq .Section "events") (eq .Section "about")) }}
{{ with .Params.foundations }}
Träger der Veranstaltung:
{{ range . }} {{ $l := . }} {{ $url := "" }} {{ if isset site.Params.foundations $l }} {{ $url = index site.Params.foundations $l }} {{ end }} {{- $res_im := resources.GetMatch (printf "/images/foundations/%s*" $l ) -}} {{ if $res_im }}
{{ if $url }}{{ end }} {{ if $url }}{{ end }}
{{ else }} {{ if eq hugo.Environment "development" }}
assets/images/foundations/{{- $l -}} .* missing
{{ else }} picture missing. {{ end }} {{ end }} {{ end }}
{{ end }}
{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}:
{{ .Date | time.Format ":date_full" }}
{{ if ne .Date .Lastmod }}
{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}:
{{ .Lastmod | time.Format ":date_full" }}
{{ end }}
{{ end }} {{ end }}