{{ $id := .Get "id" | default "news-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" }} {{ $includeLinks := .Get "includeList" }} {{ $filterId := .Get "filterId" }} {{ $linksClass := .Get "linksClass" | default "list-inline block-summary-more margin-bottom-40" }} {{ $dateFormat := .Get "dateFormat" }} {{ if not (in (.Page.Scratch.Get "news-container-ids") $id) }} {{ .Page.Scratch.Add "news-container-ids" (slice $id) }} {{ end }} {{ if and $templateId $templatePath }} {{ .Page.Scratch.SetInMap "mustache-templates" $templateId $templatePath }} {{ end }}