Update recent-articles.html

pull/428/head
Gautier 2022-12-11 14:31:04 +01:00 committed by James Panther
parent 8f6202aa37
commit 42cdeb24e8
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{{ if .Site.Params.homepage.showRecent | default false }} {{ if .Site.Params.homepage.showRecent | default false }}
<h2 class="mt-8 text-2xl font-extrabold">{{ i18n "shortcode.recent_articles" | emojify }}</h2> <h2 class="mt-8 text-2xl font-extrabold">{{ i18n "shortcode.recent_articles" | emojify }}</h2>
{{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 5).Pages }} {{ range first .Site.Params.homepage.showRecentItems (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) .Site.Params.homepage.showRecentItems).Pages }}
{{ partial "article-link.html" . }} {{ partial "article-link.html" . }}
{{ end }} {{ end }}
{{ end }} {{ end }}