{{ $id := .Get "id" | default "event-list-container" }} {{ $class := .Get "class" | default "news-list col-xs-24" }} {{ $title := .Get "title" }} {{ $titleClass := .Get "titleClass" | default "header-underline margin-bottom-30" }} {{ $containerClass := .Get "containerClass" | default "news-items" }} {{ $count := .Get "count" | default "3" }} {{ $templateId := .Get "templateId" }} {{ $templatePath := .Get "templatePath" }} {{ $type := .Get "type" }} {{ $paginate := .Get "paginate" }} {{ $publishTarget := .Get "publishTarget" }} {{ $sortOrder := .Get "sortOrder" }} {{ $sortField := .Get "sortField" }} {{ $upcoming := .Get "upcoming" | default "false" }} {{ $archive := .Get "archive" | default "false" }} {{ $past_event := .Get "past_event" | default "false" }} {{ $includeLinks := .Get "includeList" }} {{ $linksClass := .Get "linksClass" | default "list-inline block-summary-more margin-bottom-40" }} {{ if not (in (.Page.Scratch.Get "events-container-ids") $id) }} {{ .Page.Scratch.Add "events-container-ids" (slice $id) }} {{ end }} {{ if and $templateId $templatePath }} {{ .Page.Scratch.SetInMap "mustache-templates" $templateId $templatePath }} {{ end }}
{{ with $title }}

{{ . | safeHTML }}

{{ end }}
{{ if eq $includeLinks "true" }} {{ end }}