summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <eltrac233@gmail.com>2024-11-28 23:06:18 +0800
committerEltrac <eltrac233@gmail.com>2024-11-28 23:06:18 +0800
commitef720550dd8f69dbbd06b1f9a6cb13fa8decb442 (patch)
treed8587998e204d5bc7163cccbb4e991b83a91e97d
parent17f3d92d1e02c650c4931f724e65ae5ae2baa02c (diff)
refactor(theme): replace 'socials' with 'nav' for the sake of accuracy
-rw-r--r--hugo.toml6
-rw-r--r--themes/yinyang/layouts/partials/header.html2
2 files changed, 4 insertions, 4 deletions
diff --git a/hugo.toml b/hugo.toml
index b3ab0623..4d2fae62 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -20,17 +20,17 @@ headTitle = "極客死亡計劃"
mainSections = ["posts"]
favicon = "/favicon.png"
-[[params.socials]]
+[[params.nav]]
name = "关于"
link = "/about"
target = "_self"
-[[params.socials]]
+[[params.nav]]
name = "链接"
link = "/links"
target = "_self"
-[[params.socials]]
+[[params.nav]]
name = "RSS"
link = "/posts/index.xml"
target = "_blank"
diff --git a/themes/yinyang/layouts/partials/header.html b/themes/yinyang/layouts/partials/header.html
index ad5e180a..0dd6cc93 100644
--- a/themes/yinyang/layouts/partials/header.html
+++ b/themes/yinyang/layouts/partials/header.html
@@ -8,7 +8,7 @@
<div class="header-subtitle">{{ .Site.Params.Description }}</div>
</header>
<div class="header-items">
- {{ range .Site.Params.socials }}
+ {{ range .Site.Params.nav }}
<div class="header-item">
<a href="{{ .link }}" target="{{ .target }}">{{ .name }}</a>
</div>