{{ define "main" }} {{ $partial := print "partials/home/" .Site.Params.homepage.layout ".html" }} {{ if templates.Exists $partial }} {{ partial $partial . }} {{ else }} {{ partial "partials/home/page.html" . }} {{ end }} {{ if .Site.Params.homepage.showList | default false }}

Recent

{{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.homepage.listSections)).Pages }} {{ partial "article-link.html" . }} {{ end }}
{{ end }} {{ end }}