-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
149 lines (135 loc) · 3.73 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
BaseUrl: "https://PheonixHkbxoic.github.io/"
# hugo是按域名处理的,如果域名后有后缀时 多语言情况下languageCode是加在了域名后en/docs/ 所以会有问题
#BaseUrl: "https://PheonixHkbxoic.github.io/docs/"
Title: "PheonixHkbxoic | docs"
theme: "PaperMod"
defaultContentLanguage: "zh"
# enableInlineShortcodes: true
enableEmoji: true # 允许使用 Emoji 表情,建议 true
enableRobotsTXT: true # 允许爬虫抓取到搜索引擎,建议 true
hasCJKLanguage: true # 自动检测是否包含 中文日文韩文 如果文章中使用了很多中文引号的话可以开启
buildDrafts: true
buildFuture: false
buildExpired: false
#googleAnalytics: UA-123-45 # 谷歌统计
# Copyright: Sulv
paginate: 15 # 首页每页显示的文章数
minify:
disableXML: true
# minifyOutput: true
permalinks:
post: "/:title/"
# post: "/:year/:month/:day/:title/"
#defaultContentLanguage: en # 最顶部首先展示的语言页面
# defaultContentLanguageInSubdir: true
outputs:
home: ["HTML", "RSS", "JSON"]
languages:
zh:
languageCode: "zh-CN"
languageName: "中文"
menu:
main:
- identifier: home
name: 主页
pageRef: /
weight: 1
- identifier: search
name: 搜索
pageRef: search
weight: 2
- identifier: Go
name: Go
pageRef: posts/golang/
weight: 3
- identifier: posts
name: 文章
pageRef: posts
weight: 4
- identifier: tags
name: 标签
pageRef: tags
weight: 15
- identifier: categories
name: 分类
pageRef: categories
weight: 20
- identifier: archives
name: 时间轴
pageRef: archives
weight: 30
- identifier: about
name: 关于
pageRef: about
weight: 50
en:
# disabled: true
languageCode: "en"
languageName: "English"
menu:
main:
- identifier: home
name: Home
pageRef: /
weight: 1
- identifier: search
name: Search
pageRef: search
weight: 2
- identifier: Go
name: Go
pageRef: posts/golang/
weight: 3
- identifier: posts
name: Posts
pageRef: posts/
weight: 4
- identifier: tags
name: Tags
pageRef: tags/
weight: 15
- identifier: categories
name: Categories
pageRef: categories/
weight: 20
- identifier: archives
name: Archives
pageRef: archives/
weight: 30
- identifier: about
name: About
pageRef: about
weight: 50
Params:
#env: production # to enable google analytics, opengraph, twitter-cards and schema.
description: "PheonixHkbxoic 个人博客, hugo Papermod 主题"
author: PheonixHkbxoic
DateFormat: "2006-01-02"
#ShowShareButtons: true
ShowReadingTime: true # disableSpecialistPost: true
displayFullLangName: true
ShowPostNavLinks: true
ShowBreadCrumbs: true
ShowCodeCopyButtons: true
hideFooter: false # 隐藏页脚
ShowWordCount: true
VisitCount: true
ShowVisitCount: true
ShowLastMod: true #显示文章更新时间
hideTitle: true
disableSpecial1stPost: true # 首页第一个文章是否特殊显示
taxonomies:
category: categories
tag: tags
markup:
goldmark:
renderer:
unsafe: true # HUGO 默认转义 Markdown 文件中的 HTML 代码,如需开启的话
highlight:
# anchorLineNos: true
codeFences: true
guessSyntax: true
lineNos: true
# noClasses: false
# style: monokai
style: darcula