{{- $template := .block.template -}} {{- $position := .block.position -}} {{- $title := .block.title -}} {{- with .block.data }}
{{ if or $title .description }}
{{ if $title }}

{{ partial "PrepareHTML" $title }}

{{ end }} {{- if .description }}
{{ partial "PrepareHTML" .description }}
{{ end -}}
{{ end -}}
{{ range .events }} {{ $event := site.GetPage .file }} {{ with $event }} {{ partial "events/event" (dict "event" . ) }} {{ end -}} {{ end -}}
{{ end -}}