congo/layouts/index.html

17 lines
610 B
HTML
Raw Normal View History

2021-08-11 05:28:33 +00:00
{{ define "main" }}
2021-08-15 08:41:40 +00:00
{{ $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 }}
<section>
2021-08-17 06:48:08 +00:00
<h2 class="text-2xl font-extrabold">{{ i18n "homepage.recent" | emojify }}</h2>
2021-08-15 08:41:40 +00:00
{{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.homepage.listSections)).Pages }}
{{ partial "article-link.html" . }}
{{ end }}
</section>
{{ end }}
2021-08-11 05:28:33 +00:00
{{ end }}