{{ $metas := dict "when" .context.Params.when "price" .context.Params.price "contact" .context.Params.contact "covid" .context.Params.covid }} {{ if eq .type "list" }} {{ $metas = dict "when" .context.Params.when "price" .context.Params.price }} {{ end }} {{ $pic := "solo" }} {{ $text := "solo" }} {{- 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 }} {{ partial "snippets/article_metadata" $metas }}
{{- if and (.context.Resources.ByType "image") (eq .pic "true") -}} {{ $resize := "500x" }} {{- $img := index (.context.Resources.ByType "image") 0 -}} {{- $thumb := index (.context.Resources.ByType "image") 0 -}} {{ if ne .context.Content "" }} {{- $resize = "2048x" }} {{ else if eq .type "list" }} {{- $resize = "500x" }} {{ end }} {{- $thumb = $img.Resize $resize }}
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}{{ end }} {{ if and (ne .type "list") (.context.Resources.ByType "image") }}{{ end }}
{{ end }} {{- if or .context.Content .context.Summary -}}
{{ 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 }}
{{- 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 "/foundations/%s*" $l ) -}} {{ if $res_im }} {{ end }} {{ end }}
{{ end }}
{{ if ne .Date .Lastmod }} {{ end }}
{{ end }} {{ end }} {{ define "sidebar" }} {{ if ne .Type "tools" }} {{- partial "snippets/menu" . }} {{ end }} {{ end }}