From 1c6b62580c9a61006b8e5bcb25f0ab9afc351854 Mon Sep 17 00:00:00 2001 From: Vaica <94612053+zqlit@users.noreply.github.com> Date: Sat, 31 Jan 2026 23:05:19 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E5=BC=80=E5=85=B3=E7=9B=B8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hugo.toml | 3 ++- themes/Ying/layouts/_default/about.html | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hugo.toml b/hugo.toml index db63b4a2..d697413d 100644 --- a/hugo.toml +++ b/hugo.toml @@ -100,8 +100,9 @@ hasCJKLanguage = true # 关于页面配置 (About Page Configuration) # ---------------------------------------------------------------------------- [params.about] - enableheatmap = false # 开启热力图 (Enable Heatmap) + enableheatmap = true # 开启热力图 (Enable Heatmap) enableskills = false # 开启技能栈 (Enable Skills) + enablealbum = false # 开启相册 (Enable Album) # ---------------------------------------------------------------------------- # 作者信息 (Author Info) diff --git a/themes/Ying/layouts/_default/about.html b/themes/Ying/layouts/_default/about.html index 182797fb..a3d0fd92 100644 --- a/themes/Ying/layouts/_default/about.html +++ b/themes/Ying/layouts/_default/about.html @@ -24,6 +24,7 @@ {{ end }} + {{ if site.Params.about.enablealbum }} {{ $sectionCount = add $sectionCount 1 }}
{{ printf "%02d" $sectionCount }} / 光影 (Album)
@@ -41,6 +42,7 @@ {{ end }}
+ {{ end }} {{ end }} \ No newline at end of file