From b9b209720027d983af28718552a55589b6576a74 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Fri, 9 Oct 2026 02:58:20 +0800 Subject: Refine homepage navigation and recent updates --- hugo.toml | 2 +- layouts/partials/primary-nav.html | 2 +- layouts/partials/recent.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hugo.toml b/hugo.toml index 7d2a376..e6a87b8 100644 --- a/hugo.toml +++ b/hugo.toml @@ -16,7 +16,7 @@ enableRobotsTXT = false sourceURL = "https://git.richardqin.org/rhomepage" gitBase = "https://git.richardqin.org/rhomepage/tree" contentLicense = "CC BY-SA 4.0" - recentLimit = 20 + recentLimit = 10 announcementLimit = 3 [frontmatter] diff --git a/layouts/partials/primary-nav.html b/layouts/partials/primary-nav.html index 4a94d92..c55db31 100644 --- a/layouts/partials/primary-nav.html +++ b/layouts/partials/primary-nav.html @@ -1,8 +1,8 @@ diff --git a/layouts/partials/recent.html b/layouts/partials/recent.html index cbe91af..f3d4209 100644 --- a/layouts/partials/recent.html +++ b/layouts/partials/recent.html @@ -1,6 +1,6 @@ {{- $items := partial "updated-items.html" . -}}
-

RECENT

+

RECENT UPDATES

    {{- range first site.Params.recentLimit $items }}
  1. @@ -10,5 +10,5 @@
  2. {{- end }}
-

Read more

+

All updates →

-- cgit v1.2.3