{{ if and (ne .Params.when "") (ne .Params.when nil) }}
{{ .Params.when }}
{{ $meta = "true" }}
{{ end }}
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
{{ if eq .Params.price "free" }}
Der Eintritt ist frei.
{{ $meta = "true" }}
{{ else }}
Eintritt: {{ .Params.price }}
{{ $meta = "true" }}
{{ end }}
{{ end }}
{{- if .Resources.ByType "image" -}}
{{- $pic := index (.Resources.ByType "image") 0 -}}
{{ $thumb := "" }}
{{ if eq .Content "" }}
{{- $thumb = $pic.Resize "1024x" }}
{{ else }}
{{- $thumb = $pic.Resize "2048x" }}
{{ end }}
{{- end }}
{{- if .Params.description -}}
{{- .Params.description -}}
{{- else -}}
{{- .Summary -}}
{{- end }}
{{ if or .Truncated (eq $meta "true") }}
{{- i18n "readmore" -}}..
{{ end }}
{{- end }}
{{- end -}}
{{ define "sidebar" }}
{{- partial "sidebar" . }}
{{ end }}