congo/layouts/partials/recent-articles.html

7 lines
322 B
HTML
Raw Permalink Normal View History

{{ if .Site.Params.homepage.showRecent | default false }}
<h2 class="mt-8 text-2xl font-extrabold">{{ i18n "shortcode.recent_articles" | emojify }}</h2>
2021-08-18 07:06:14 +00:00
{{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections)).Pages }}
{{ partial "article-link.html" . }}
{{ end }}
{{ end }}