summaryrefslogtreecommitdiff
path: root/themes/blowfish/layouts/partials/recent-articles/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/blowfish/layouts/partials/recent-articles/list.html')
-rw-r--r--themes/blowfish/layouts/partials/recent-articles/list.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/blowfish/layouts/partials/recent-articles/list.html b/themes/blowfish/layouts/partials/recent-articles/list.html
new file mode 100644
index 0000000..4e32dc5
--- /dev/null
+++ b/themes/blowfish/layouts/partials/recent-articles/list.html
@@ -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> \ No newline at end of file