From 5bd8863f987ad3283e83fbd30c998dad02173cd5 Mon Sep 17 00:00:00 2001 From: donfiguerres Date: Wed, 26 May 2021 00:38:18 +0800 Subject: [PATCH] Allow configurable number of recent posts. --- layouts/partials/sections/recent-posts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/sections/recent-posts.html b/layouts/partials/sections/recent-posts.html index 937bdff..7dbc7e4 100644 --- a/layouts/partials/sections/recent-posts.html +++ b/layouts/partials/sections/recent-posts.html @@ -9,7 +9,7 @@ {{ end }}
- {{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}} + {{ range first .section.numShow (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}} {{ partial "cards/recent-post.html" . }} {{ end }}