Update Hugo Config and Add Umami link

This commit is contained in:
2025-07-03 17:54:52 +08:00
parent ff2131dd2f
commit 67ab31ca56

View File

@@ -1,7 +1,7 @@
#────────────────────────────────────────────
# 1. 全局基础设置
#────────────────────────────────────────────
# baseURL = "https://zopiya.com/"
baseURL = "https://zopiya.com/"
languageCode = "zh"
title = "向阳而生"
theme = "typo"
@@ -75,14 +75,12 @@ enableRobotsTXT = true
colorPalette = "base16-default"
hideHeader = true
readTime = true
paginationSize = 10
paginationSize = 7
listSummaries = false
# 若启用 listSummaries = true需要指定 summaryLength
# summaryLength = 70
listDateFormat = "2006 Jan"
homeDateFormat = "2 Jan"
homeIntroTitle = "👋👋👋"
homeIntroContent = """愿我们都能:执着于热爱,纯粹于当下。"""
homeIntroTitle = ""
homeIntroContent = """🌿愿我们都能:执着于热爱,纯粹于当下。"""
homeCollectionTitle = "文辑"
homeCollection = "posts"
@@ -93,9 +91,8 @@ enableRobotsTXT = true
[params.umami]
enable = true
websiteId = "ce53db0e-af27-4703-ba19-d4792c8cff78"
# 建议托管到 CDN 域名,或根目录以减少跨域请求
jsLocation = "https://umami.7wate.com/script.js"
websiteId = "91fd7346-f191-4484-943c-f6884fb2ab07"
jsLocation = "https://umami.7wate.org/script.js"
#────────────────────────────────────────────
# 7. 菜单与社交
@@ -112,15 +109,21 @@ enableRobotsTXT = true
[[params.menu]]
name = "片语"
url = "https://memos.7wate.com/explore"
url = "https://memos.zopiya.com/explore"
newTab = true
weight = 3
[[params.menu]]
name = "知原"
url = "https://x-eden.zopiya.com"
newTab = true
weight = 4
[[params.menu]]
name = "关于"
url = "/about/"
newTab = true
weight = 4
weight = 5
[[params.social]]
name = "github"
@@ -132,7 +135,6 @@ enableRobotsTXT = true
[[params.social]]
name = "rss"
# 通常 RSS 放在 /rss.xml 而非 /index.xml
url = "/rss.xml"
#────────────────────────────────────────────
@@ -151,12 +153,6 @@ enableRobotsTXT = true
[security]
enableInlineShortcodes = true
[privacy]
[privacy.googleAnalytics]
anonymizeIP = true
respectDoNotTrack = true
useSessionStorage = false
disable = true # 如不使用 GA建议删掉整个块
#────────────────────────────────────────────
# 10. 构建压缩与优化