{{ $metas := dict "when" .context.Params.when "price" .context.Params.price "contact_mail" .context.Params.contact_mail "covid" .context.Params.covid "insta" .context.Params.insta }} {{ if eq .type "list" }} {{ $metas = dict "when" .context.Params.when "price" .context.Params.price }} {{ end }} {{ $type := .type }} {{ $pic := "solo" }} {{ $text := "solo" }} {{ if eq $type "list" }} {{- if and (.context.Resources.ByType "image") (.context.Content) -}} {{ $pic = "multiple_small" }} {{ $text = "multiple_big" }} {{ else if and (.context.Resources.ByType "image") (not (.context.Content)) }} {{ $pic = "multiple_medium" }} {{ end }} {{ end }} {{ partial "snippets/article_metadata" $metas }}
{{ $i := .context.Resources.ByType "image" }} {{- if .context.Content -}} {{ if eq $type "list" }} {{ if .context.Resources.Match "banner*" }}
{{ range $i }} {{ if hasPrefix .Name "banner" }} {{ $img := . }} {{ $thumb := $img.Resize "500x" }} {{- end }} {{- end }}
{{- end }} {{ end }}
{{ if eq .type "list" }}{{- .context.Summary -}}{{ else }}{{- .context.Content -}}{{ end }} {{ if and .context.Truncated (eq .type "list") }}
{{- if i18n "readmore" -}}{{- i18n "readmore" -}}{{- else -}}{{- "readmore" -}}{{- end -}}..
{{ end }}
{{ else }} {{ if eq $type "article" }}
{{ range $i }} {{ if not (hasPrefix .Name "banner") }} {{ $img := . }} {{ $thumb := $img.Resize "500x" }} {{- end }} {{- end }}
{{ else }} {{ range first 1 $i }} {{ if not (hasPrefix .Name "banner") }} {{ $img := . }} {{ $thumb := $img.Resize "500x" }} {{- end }} {{- end }} {{ end }} {{- end }}
{{ define "pagefooter" }} {{ 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 }} {{ else }} {{ end }} {{ end }}
{{ end }}
{{ if ne .Date .Lastmod }} {{ end }}
{{ end }} {{ end }} {{ define "sidebar" }} {{ if ne .Type "tools" }} {{ end }} {{ end }}