{{ 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 }}

{{ i18n "homepage.recent" | emojify }}

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