From 26333563405390ddc78f4db69b7bf20599317639 Mon Sep 17 00:00:00 2001 From: donfiguerres Date: Wed, 26 May 2021 01:03:37 +0800 Subject: [PATCH] Add configuration to 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 }}