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

{{ .Title }}

{{ end }} {{ end }} {{ define "main" }} {{ partial "debug" (dict "context" . "filename" "index.html") }} {{ $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 }} {{- $paginator := .Paginate $posts -}} {{ if eq $paginator.PageNumber 1 }} {{ if ne .Content "" }}
{{ .Content }}
{{ end }}

{{ "featured" | T }}

{{ partial "contentlayouts/list.html" (dict "context" . "pages" $featured "amount" "3" "max_age" "3" "featured" "true") }} {{ end }}

{{ "news" | T }}

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