♻️ refactor article links, cards, and recent articles partials

This commit is contained in:
Nuno Coração committed 2022-12-31 15:58:20 +00:00
1 parent 963310a713
commit 6bccf5c7d9
25 files changed
+119 -119

No files matched your search

@@ -0,0 +1,9 @@
{{ $recentArticles := 5 }}
{{ $recentArticles = .Site.Params.homepage.showRecentItems }}
<section class="space-y-10 w-full">
{{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections)).Pages
}}
{{ partial "article-link/simple.html" . }}
{{ end }}
</section>