fixed 开关相册

This commit is contained in:
Vaica committed 2026-01-31 23:05:19 +08:00
1 parent d93167a114
commit c7acf03b4a
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -100,8 +100,9 @@ hasCJKLanguage = true
# 关于页面配置 (About Page Configuration) # 关于页面配置 (About Page Configuration)
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
[params.about] [params.about]
enableheatmap = false # 开启热力图 (Enable Heatmap) enableheatmap = true # 开启热力图 (Enable Heatmap)
enableskills = false # 开启技能栈 (Enable Skills) enableskills = false # 开启技能栈 (Enable Skills)
enablealbum = false # 开启相册 (Enable Album)
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# 作者信息 (Author Info) # 作者信息 (Author Info)
+2
View File
@@ -24,6 +24,7 @@
{{ end }} {{ end }}
<!-- Album Section --> <!-- Album Section -->
{{ if site.Params.about.enablealbum }}
{{ $sectionCount = add $sectionCount 1 }} {{ $sectionCount = add $sectionCount 1 }}
<div style="margin-top: 40px;"> <div style="margin-top: 40px;">
<div class="section-title">{{ printf "%02d" $sectionCount }} / 光影 (Album)</div> <div class="section-title">{{ printf "%02d" $sectionCount }} / 光影 (Album)</div>
@@ -41,6 +42,7 @@
{{ end }} {{ end }}
</div> </div>
</div> </div>
{{ end }}
</div> </div>
</div> </div>
{{ end }} {{ end }}