cullmann.io/themes/blowfish/layouts/partials/recent-articles/cardview.html

9 lines
342 B
HTML
Raw Permalink Normal View History

{{ $recentArticles := 5 }}
{{ $recentArticles = .Site.Params.homepage.showRecentItems }}
<section class="w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3">
{{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in"
.Site.Params.mainSections)).Pages }}
{{ partial "article-link/card.html" . }}
{{ end }}
</section>