{{ define "main" }}

{{ .Title }}{{ with .Params.motto }} - {{ . }}{{ end }}

{{ partial "events/banner" . }} {{ partial "events/metaTwoRows" . }}
{{ .Content }}
{{ $photos := .Resources.Match "impressions/*" }} {{ with $photos }}

Sign-Spotting

{{ partial "events/photoGallery" (dict "page" $ "photos" .) }}
{{ end }} {{ $map := index (.Resources.Match "maps/map.png") 0 }} {{ with $map }}

The Map

{{ partial "events/maps" (dict "page" $ "map" .) }}
{{ end }} {{ $signs := .Resources.Match "signs/*.png" }} {{ with $signs }}

Neat Signs

{{ partial "events/signGallery" (dict "page" $ "signs" .) }}
{{ end }} {{ with .Resources.Match "_resources.md" }} {{ range first 1 . }} {{ end }} {{ end }} {{ $posts := where (.Site.RegularPages.RelatedIndices . "event" ) "Type" "posts" }} {{ with $posts }}

Blog Posts

{{ partial "posts/listing" $posts }}
{{ end }} {{ with .Resources.Match "_links.md" }} {{ range first 1 . }} {{ end }} {{ end }}
{{ end }} {{ define "headincludes" }} {{ partial "lightgallery/gallery-include" . }} {{ end }} {{ define "endincludes" }} {{ partial "lightgallery/gallery-render" . }} {{ end }}