{{ 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_sections := .Site.GetPage "/home" }} {{- range sort ($home_sections.Resources.Match "*.md") ".Name" }}

{{ .Title }}

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