diff options
| author | Eltrac <hi@guhub.cn> | 2025-10-30 11:59:50 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-10-30 11:59:50 +0800 |
| commit | e858f6c7dcb8f480195cecc7a6f665d98fb059f6 (patch) | |
| tree | d91ba9d00dc7656b5de2b9745c67014a8521134b | |
| parent | a7bb422c444a71c4e817b0f233e7359fd65cb414 (diff) | |
perf: reduce DOM size by showing less posts at home
Former-commit-id: 9e6cb4e4d6c40b9060f8b64643bb5d6615ef7fa0
| -rw-r--r-- | layouts/_partials/home/latest-posts.html | 2 |
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 |
