From 9e6cb4e4d6c40b9060f8b64643bb5d6615ef7fa0 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 30 Oct 2025 11:59:50 +0800 Subject: perf: reduce DOM size by showing less posts at home --- layouts/_partials/home/latest-posts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_partials/home/latest-posts.html b/layouts/_partials/home/latest-posts.html index cf80ece6..8195b481 100644 --- a/layouts/_partials/home/latest-posts.html +++ b/layouts/_partials/home/latest-posts.html @@ -2,7 +2,7 @@
{{ $firstPost := true }} - {{ range first 12 (where site.RegularPages "Type" "in" site.Params.mainSections) }} + {{ range first 5 (where site.RegularPages "Type" "in" site.Params.mainSections) }} {{ partial "items/post" (dict "ctx" . "showSummary" $firstPost -- cgit v1.2.3