-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
223 lines (196 loc) · 6.44 KB
/
config.yml
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
baseURL: https://zpc2222.github.io # 绑定的域名
languageCode: zh-cn
title: 我的个人小站
theme: hugo-PaperMod # 主题名字,和themes文件夹下的一致
enableInlineShortcodes: true
enableEmoji: true # 允许使用 Emoji 表情,建议 true
enableRobotsTXT: true # 允许爬虫抓取到搜索引擎,建议 true
hasCJKLanguage: true # 自动检测是否包含 中文日文韩文 如果文章中使用了很多中文引号的话可以开启
buildDrafts: false
buildFuture: false
buildExpired: false
googleAnalytics: # 谷歌统计
# Copyright: 藏锋
paginate: 8 # 首页每页显示的文章数
minify:
disableXML: true
minifyOutput: true
permalinks: # 访问博客时网址的显示形式
post: "/:title/"
post: "/:year/:month/:day/:title/"
defaultContentLanguage: en # 最顶部首先展示的语言页面
defaultContentLanguageInSubdir: true
languages:
en:
languageName: "English"
weight: 1
profileMode:
enabled: true
title: (〃'▽'〃)
subtitle:
subtitle: "🧨人生三大真理:<br/>暴力真的可以解决一切,<br/>帅真的可以当饭吃,<br/>有钱真的可以为所欲为。<br/> <br/> <br/>3️⃣💯6️⃣🔟行,行行出BUG。 <br/>联系我 👇🏻"
imageUrl: "img/Q.gif"
imageTitle:
imageWidth: 150
imageHeight: 150
buttons:
- name: 🧱 博客
url: posts/blog
- name: 👨🏻💻 技术
url: posts/tech
- name: ☕ 生活
url: posts/life
- name: 🛠️ 工具
url: posts/tools
menu:
main:
- identifier: search
name: 🔍 搜索
url: search
weight: 1
- identifier: home
name: 🏠 主页
url: /
weight: 2
- identifier: posts
name: 📚 文章
url: posts
weight: 3
- identifier: tags
name: 🧩 标签
url: tags
weight: 15
- identifier: archives
name: ⏱ 时间轴
url: archives/
weight: 20
- identifier: music
name: 🎵 听听歌
url: music
weight: 30
- identifier: about
name: 🙋🏻♂️ 关于
url: about
weight: 50
- identifier: links
name: 🤝 友链
url: links
weight: 60
outputs:
home:
- HTML
- RSS
- JSON
# 这里的参数会被代码以 .Site.Params 的形式读取
params:
env: production # to enable google analytics, opengraph, twitter-cards and schema.
description: ""
author: 藏锋
# author: ["Me", "You"] # multiple authors
defaultTheme: auto # defaultTheme: light or dark
disableThemeToggle: false
DateFormat: "2006-01-02"
ShowShareButtons: true
ShowReadingTime: true
# disableSpecialistPost: true
displayFullLangName: true
ShowPostNavLinks: true
ShowBreadCrumbs: true
ShowCodeCopyButtons: true
hideFooter: false # 隐藏页脚
ShowWordCounts: true
VisitCount: true
ShowLastMod: true #显示文章更新时间
ShowToc: true # 显示目录
TocOpen: true # 自动展开目录
comments: true
socialIcons:
- name: github
url: "https://github.com/zpc2222"
- name: QQ
url: "img/qq.jpg"
- name: WeChat
url: "img/wx.jpg"
- name: email
url: "mailto:[email protected]"
- name: RSS
url: "index.xml"
label:
text: "我的个人小站"
icon: "img/Q.gif"
iconHeight: 35
analytics:
google:
SiteVerificationTag: ""
assets:
favicon: "img/Q.gif"
favicon16x16: "img/Q.gif"
favicon32x32: "img/Q.gif"
apple_touch_icon: "img/Q.gif"
safari_pinned_tab: "img/Q.gif"
disableFingerprinting: true
cover:
hidden: false # hide everywhere but not in structured data
hiddenInList: false # hide on list pages and home
hiddenInSingle: false # hide on single page
fuseOpts:
isCaseSensitive: false
shouldSort: true
location: 0
distance: 1000
threshold: 0.4
minMatchCharLength: 0
keys: ["title", "permalink", "summary"]
Reward: true #打赏是否开启
# 打赏微信图片地址,
# 可用绝对和相对地址,相对地址的图片需放在static/img下,
# 填写格式为img/wechat_pay.png
WechatPay: img/wechat-pay.jpg
Alipay: img/ali-pay.jpg #打赏支付宝图片地址
# twikoo评论
twikoo:
version: 1.6.7
id: https://vercel-zpc2222.vercel.app # 填写自己的twikoo id
region: # 环境地域,默认为 ap-shanghai,如果您的环境地域不是上海,需传此参数,请看twikoo官方文档
taxonomies:
category: categories
tag: tags
series: series
markup:
goldmark:
renderer:
unsafe: true # HUGO 默认转义 Markdown 文件中的 HTML 代码,如需开启的话
highlight:
# anchorLineNos: true
codeFences: true
guessSyntax: true
lineNos: true
noClasses: true
tabWidth: 4
style: monokai
# codeFences:代码围栏功能,这个功能一般都要设为 true 的,不然很难看,就是干巴巴的-代码文字,没有颜色。
# guessSyntax:猜测语法,这个功能建议设置为 true, 如果你没有设置要显示的语言则会自动匹配。
# hl_Lines:高亮的行号,一般这个不设置,因为每个代码块我们可能希望让高亮的地方不一样。
# lineNoStart:行号从编号几开始,一般从 1 开始。
# lineNos:是否显示行号,我比较喜欢显示,所以我设置的为 true.
# lineNumbersInTable:使用表来格式化行号和代码,而不是 标签。这个属性一般设置为 true.
# noClasses:使用 class 标签,而不是内嵌的内联样式
privacy:
vimeo:
disabled: false
simple: true
twitter:
disabled: false
enableDNT: true
simple: true
instagram:
disabled: false
simple: true
youtube:
disabled: false
privacyEnhanced: true
services:
instagram:
disableInlineCSS: true
twitter:
disableInlineCSS: true