This commit is contained in:
Chris Cochrun 2025-05-19 14:08:56 -05:00
parent 7a4c5c2d22
commit 2b82345290
663 changed files with 38142 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{{ $recentArticles := 5 }}
{{ $recentArticles = .Site.Params.homepage.showRecentItems }}
<div class="relative w-screen max-w-[1600px] px-[30px]" style="left: calc(max(-50vw,-800px) + 50%);">
<section
class="w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5">
{{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in"
.Site.Params.mainSections)).Pages }}
{{ partial "article-link/card.html" . }}
{{ end }}
</section>
</div>