configure homepage and site navigation

This commit is contained in:
luochen570
2026-05-28 22:50:42 +08:00
parent ce2986fa93
commit e0d7f07c24
5 changed files with 331 additions and 1 deletions

116
hugo.toml
View File

@@ -1,4 +1,118 @@
baseURL = 'https://hugo.luochen570.cn/'
locale = 'zh_cn'
title = 'Luochen570 Hugo Blog'
title = '洛尘的技术笔记'
theme = 'PaperMod'
enableRobotsTXT = true
enableEmoji = true
hasCJKLanguage = true
mainsections = ['posts']
[pagination]
pagerSize = 8
[taxonomies]
category = 'categories'
tag = 'tags'
series = 'series'
[outputs]
home = ['HTML', 'RSS', 'JSON']
[params]
env = 'production'
description = '洛尘的技术笔记记录自托管服务、Linux 运维、k3s、Tailscale、Hugo、开发环境和自动化实践。'
author = '洛尘'
defaultTheme = 'auto'
ShowReadingTime = true
ShowShareButtons = false
ShowPostNavLinks = true
ShowBreadCrumbs = true
ShowCodeCopyButtons = true
ShowRssButtonInSectionTermList = true
ShowToc = true
TocOpen = false
ShowPageNums = true
ShowWordCount = true
ShowFullTextinRSS = false
disableSpecial1stPost = false
[params.homeInfoParams]
Title = '你好,我是洛尘 👋'
Content = '''
这里记录我的自托管服务、服务器运维、k3s 集群、Tailscale 组网、Hugo 博客、终端环境和自动化实践。
我希望每篇文章都尽量说明:为什么这么做、具体怎么做、怎么验证成功,以及踩过哪些坑。
'''
[[params.socialIcons]]
name = 'github'
title = 'Gitea'
url = 'https://git.luochen570.cn/luochen570'
[[params.socialIcons]]
name = 'email'
title = 'Email'
url = 'mailto:1160510664@qq.com'
[[params.socialIcons]]
name = 'rss'
title = 'RSS'
url = '/index.xml'
[params.assets]
disableHLJS = true
[params.fuseOpts]
isCaseSensitive = false
shouldSort = true
location = 0
distance = 1000
threshold = 0.35
minMatchCharLength = 1
keys = ['title', 'permalink', 'summary', 'content']
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
noClasses = false
codeFences = true
guessSyntax = true
lineNos = false
[menu]
[[menu.main]]
name = '首页'
url = '/'
weight = 1
[[menu.main]]
name = '文章'
url = '/posts/'
weight = 2
[[menu.main]]
name = '归档'
url = '/archives/'
weight = 3
[[menu.main]]
name = '标签'
url = '/tags/'
weight = 4
[[menu.main]]
name = '分类'
url = '/categories/'
weight = 5
[[menu.main]]
name = '搜索'
url = '/search/'
weight = 6
[[menu.main]]
name = '关于'
url = '/about/'
weight = 7