♻️ Move homepage recent articles to partial

This commit is contained in:
James Panther
2021-08-18 14:35:54 +10:00
parent 7030022620
commit 139706895c
13 changed files with 35 additions and 29 deletions
-8
View File
@@ -5,12 +5,4 @@
{{ 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 }}