{{ define "title" }} {{ if .Content }}

{{ .Title }}

{{ end }} {{ end }} {{ define "main" }} {{- $all := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.searchSections }} {{ $featured := where (where (where $all ".Params.featured" "=" true) "Type" "in" .Site.Params.searchSections) ".Params.Lastmod" "gt" (now.AddDate 0 0 -14) }} {{ $featured = $all | intersect $featured }} {{ $posts := $all | complement $featured }} {{- $paginator := .Paginate $posts -}} {{ if eq $paginator.PageNumber 1 }} {{ if ne .Content "" }}
{{ .Content }}
{{ end }} {{ if gt (len $featured) 0 }}

{{if "featured" | i18n }}{{ "featured" | i18n }}{{ else }}{{ "Featured" }}{{ end }}

{{ partial "contentlayouts/list.html" (dict "context" . "pages" $featured "amount" "3" ) }} {{ end }} {{ end }} {{ if gt (len $posts) 1 }}

{{ if "news" | i18n }}{{ "news" | i18n }}{{ else }}{{ "News" }}{{ end }}

{{ partial "contentlayouts/list.html" (dict "context" . "paginator" $paginator "amount" "5") }}
{{ partial "structure/paginator" (dict "paginator" $paginator) }}
{{ end }} {{ end }} {{ define "sidebar" }} {{- partial "contentlayouts/menu.html" . }} {{ end }}