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

{{ .Title }}

{{ end }} {{ end }} {{ define "main" }} {{ $s := .Site.Params }} {{- $posts := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" $s.searchSections }} {{- $featured := where (where $posts ".Params.featured" "=" true) "Type" "in" $s.searchSections }} {{ $featured = where $featured (.Lastmod.AddDate 0 0 14) "gt" now }} {{- $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" "max_age" "14" "featured" "true") }} {{ 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" "max_age" "-14") }}
{{ partial "structure/paginator" (dict "paginator" $paginator) }}
{{ end }} {{ end }} {{ define "sidebar" }} {{- partial "contentlayouts/menu.html" . }} {{ end }}