{{ define "main" }}
{{ if .Params.Cantorpreisträger }}

{{ i18n "cantorpreisträger" }}

{{ range where (where .Site.RegularPages "Title" .Params.Title ) "Type" "=" "cantorpreis" }}
{{ .Title }}

{{ .Params.Name }}

{{ .Description }}
{{ end }}
{{ end }} {{ range .Params.topics }} {{ partial "modal" . }} {{ end }} {{ if and .Params.pretext (ne .Params.pretext "\n\n\n") }} {{ partial "modal" (dict "title" .Title "content" .Params.pretext) }} {{ end }}
{{ $topics := slice }} {{ if .Params.pretext }} {{ $topics = $topics | append (slice (slice .Params.Title 200 (md5 .Title))) }} {{ else }} {{ $topics = $topics | append (slice (slice .Params.Title 200)) }} {{ end }} {{ range .Params.topics }} {{ if .superhaufen.enable }} {{ $topics = $topics | append (slice (slice .title 30 (.superhaufen.link | urlize) "superhaufen" )) }} {{ else }} {{ $topics = $topics | append (slice (slice .title 30 (md5 .title) )) }} {{ end }} {{ end }} {{ $topics = $topics | jsonify }} {{ .Content }}
{{ end }}