summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_partials/home/latest-posts.html2
1 files changed, 1 insertions, 1 deletions
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 @@
<section class="pagefind-exclude">
<div class="flex flex-col my-4">
{{ $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