diff --git a/hugo.toml b/hugo.toml index f16fccb..e39d099 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,5 +1,5 @@ # 网站基本信息 -baseURL = "https://blog.7wate.com/" # 请替换为你的实际域名 +baseURL = "https://blog.7wate.com/" languageCode = "zh-cn" title = "向阳而生" theme = "typo" @@ -25,35 +25,31 @@ timeout = "300s" [[params.menu]] name = "首页" url = "/" +weight = 1 [[params.menu]] name = "文辑" url = "/posts/" +weight = 2 [[params.menu]] name = "片语" url = "https://memos.7wate.com/explore" newTab = true +weight = 3 [[params.menu]] name = "关于" url = "/about/" newTab = true +weight = 4 # Typo 主题参数 [params] description = "愿我们都能:执着于热爱,纯粹于当下。" theme = "auto" colorPalette = "base16-default" -# default; -# catpuccin; -# gruvebox; -# eink; -# base16-default; -# base16-eighties; -# base16-ocean; -# base16-mocha; -# base16-cupcake. +# 可选颜色:default, catpuccin, gruvebox, eink, base16-default, base16-eighties, base16-ocean, base16-mocha, base16-cupcake. # 首页设置 homeIntroTitle = "👋👋👋" @@ -73,10 +69,6 @@ listSummaries = false listDateFormat = "2006 Jan" homeDateFormat = "2 Jan" -# 页脚设置 -showFooter = true -footerContent = "© 2025 向阳而生" - # 面包屑导航 [params.breadcrumbs] enabled = true @@ -94,7 +86,7 @@ url = "mailto:zhouzhongping@7wate.com" [[params.social]] name = "rss" -url = "https://blog.7wate.com/feed.xml" +url = "https://blog.7wate.com/index.xml" # Markdown 与高亮设置 [markup] @@ -114,6 +106,11 @@ url = "https://blog.7wate.com/feed.xml" priority = 0.5 filename = "sitemap.xml" +# RSS 订阅 +[services] + [services.rss] + limit = 7 + # 网站分析 [params.umami] enable = true @@ -130,4 +127,5 @@ jsLocation = "https://umami.7wate.com/script.js" # 构建压缩设置 [minify] - minifyOutput = true + disableXML = true + minifyOutput = true \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..8d7d764 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,10 @@ +{{ $showFooter := default true .Site.Params.showFooter }} +{{ if $showFooter }} + {{ if not .Site.Params.footerContent }} +
© {{ now.Format "2006" }} {{ .Site.Title }}. All rights reserved.
+ {{ end }} + + {{ with .Site.Params.footerContent }} +{{ . | markdownify }}
+ {{ end }} +{{ end }}