{{ define "title" }} {{ end }} {{ define "main" }} {{ $s := .Site.Params }} {{ $meta := false }} {{- $posts := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" $s.searchSections }} {{- $paginator := slice -}} {{- $paginator = .Paginate $posts.ByDate.Reverse -}} {{ if eq $paginator.PageNumber 1 }} {{ if ne .Content "" }}
{{ .Content }}
{{ end }} {{ range first 3 (where (where .Site.RegularPages "Type" "in" site.Params.searchSections) ".Params.featured" "=" true) }} {{ $article_age := sub now.Unix (int .Date.Unix) }} {{ if lt $article_age "1209600" }} {{ partial "structure/list_article.html" . }} {{ end }} {{ end }} {{ end }} {{- range first 5 $paginator.Pages -}} {{ $article_age := sub now.Unix (int .Date.Unix) }} {{ if or (ne .Params.featured true) (ge $article_age "1209600") }} {{ partial "structure/list_article.html" . }} {{ end }} {{- end }}
{{ partial "structure/paginator" (dict "paginator" $paginator) }}
{{ end }} {{ define "sidebar" }} {{- partial "structure/sidebar" . }} {{ end }}