{{ 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 }}

{{ .Date.Format "2006-01-02" }}: {{ .Title }} {{ .Summary }} {{- if .Truncated }} Read Moreā€¦ {{- 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 }}