mirror of https://github.com/jpanther/congo.git
17 lines
610 B
HTML
17 lines
610 B
HTML
{{ 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 }}
|
|
<section>
|
|
<h2 class="text-2xl font-extrabold">{{ i18n "homepage.recent" | emojify }}</h2>
|
|
{{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.homepage.listSections)).Pages }}
|
|
{{ partial "article-link.html" . }}
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|
|
{{ end }}
|