{{ $visible := "false" }} {{ $covid := "false" }} {{ $when := "false" }} {{ $price := "false" }} {{ $contact := "false" }} {{ $registeremail := "false" }} {{ $showmeta := "false" }} {{ if and (ne .context.Params.when "") (ne .context.Params.when nil) }} {{ $showmeta = "true" }} {{ $when = true }} {{ end }} {{ if and (ne .context.Params.price "") (ne .context.Params.price nil) }} {{ $showmeta = "true" }} {{ if eq .context.Params.price "free" }} {{ $price = true }} {{ end }} {{ end }} {{ if and (ne .context.Params.registeremail "") (ne .context.Params.registeremail nil) (eq .type "article") }} {{ $showmeta = "true" }} {{ $registeremail = true }} {{ end }} {{ if and (ne .context.Params.covid "") (ne .context.Params.covid nil) (eq .type "article") }} {{ $showmeta = "true" }} {{ $covid = true }} {{ end }} {{ if and (ne .context.Params.contact "") (ne .context.Params.contact nil) (eq .type "article") }} {{ $showmeta = "true" }} {{ $contact = true }} {{ end }} {{ if and (eq $showmeta "true") (ne .type "contact") }}
{{ if eq $when true }}
{{ .context.Params.when }}
{{ end }} {{ if eq $price true }} {{ if eq .context.Params.price "free" }}
{{ if i18n "freeentry" }}{{ i18n "freeentry" }}{{ else }}{{ "freeentry" }}{{ end }}
{{ else }}
{{ if i18n "entry" }}{{ i18n "entry" }}{{ else }}{{ "entry" }}{{ end }}: {{ .context.Params.price }}
{{ end }} {{ end }} {{ if eq $registeremail true }}
{{ if i18n "register" }}{{ i18n "register" }}{{ else }}{{ "register" }}{{ end }} {{ .context.Params.registeremail | markdownify }} {{ if i18n "or" }}{{ i18n "or" }}{{ else }}{{ "or" }}{{ end }} {{ site.Params.imprintdata.tel }}
{{ end }} {{ if eq $covid true }}
Es gilt die {{ .context.Params.covid }} Regel
{{ end }} {{ if eq $contact true }}
{{ if i18n "contact" }}{{ i18n "contact" }}{{ else }}{{ "contact" }}{{ end }}: {{ if eq .type "article" }}{{ end }}{{ .context.Params.contact }}{{ if eq .type "article" }}{{ end }}
{{ end }}
{{ end }} {{ $small := "solo" }} {{ $big := "solo" }} {{ $img := "" }} {{ $thumb := "" }} {{ $placeholder := "/images/no_article_pic.png" }} {{ if ne .context.Section "misc"}} {{ $img = resources.Get $placeholder }} {{- $thumb = $img.Resize "1024x" }} {{ end }} {{- if or (.context.Resources.ByType "image") (.Summary) ($img) -}} {{ $small = "multiple_small" }} {{ $big = "multiple_big" }} {{ else }} {{ $small = "multiple_big"}} {{ end }} {{- if and (.context.Resources.ByType "image") (ne .context.Section "misc") -}} {{- $img = index (.context.Resources.ByType "image") 0 -}} {{- $thumb = $img.Resize "1024x" }} {{ if ne .context.Content "" }} {{- $thumb = $img.Resize "2048x" }} {{ end }} {{ end }}
{{ if ne $img "" }}
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}{{ end }} {{ if ne .type "list" }}{{ end }}
{{ end }} {{- if or .context.Content .context.Summary -}}
{{ if eq .type "contact" }}{{ partial "contact.html" }}{{ end }} {{ if eq .type "list" }}{{- .context.Summary -}}{{ else }}{{- .context.Content -}}{{ end }} {{ if and .context.Truncated (eq .type "list") }}
{{- i18n "readmore" -}}..
{{ end }}
{{- end }}