{{ define "main" }}
{{ .Content }}
{{- $events := where (.Site.GetPage "blog").Pages ".Params.categories" "event" }} {{- $upcoming := where $events ".Params.date" "ge" now }} {{ if $upcoming }}

Neuigkeiten

{{- range $upcoming.ByDate }}
{{- partial "blog-header.html" (dict "headingLink" true "level" 4 "reduced" true "page" . ) }} {{- if in .RawContent "" }} {{ .Summary | safeHTML }} {{- else }}

{{ .Summary | safeHTML }}

{{- end }}
{{- end }}
{{- end }} {{- $home := .Site.GetPage "/home" }} {{- range sort ($home.Resources.ByType "page") "File.Path" "asc" }}

{{ .Title }}

{{ .Content -}} {{- $sec := .CurrentSection }} {{- with .Params.Resources }}
{{- range . }} {{- $img := $sec.Resources.GetMatch (printf "*/%s" .src) }} {{- end }}
{{- end }}
{{ end }}
{{ end }}