/
config.yaml
387 lines (333 loc) · 9.23 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
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
baseURL: https://hugo-theme-luna.imiku.me/
languageCode: en-us
defaultContentLanguage: en-us
title: "Hugo Theme Luna"
enableRobotsTXT: true
enableEmoji: true
theme: hugo-theme-luna
timeout: 60000
timeZone: Asia/Shanghai
# 可根据 Git 中的提交生成最近更新记录。
# use git commit log to generate lastmod record
enableGitInfo: false
# 如果你的博客包含中日韩语,请启用此选项
# enable CJK language support
hasCJKLanguage: true
# 每页显示文章数量
# pagination size
paginate: 10
# 启用谷歌统计
# google analytics tracking code
# googleAnalytics: UA-98634098-1
# 版权信息,默认为 author.name ↓
# default: author.name ↓
# copyright: ""
permalinks:
# 文章链接的格式
# Format of posts links
posts: /:year/:month/:day/:slug.html # 2019/01/01/hello-world.html
pages: /:slug.html # about.html
author:
name: Ice-Hazymoon
frontmatter:
lastmod:
- :git
- lastmod
- :fileModTime
- date
- publishDate
- :default
taxonomies:
tag: "tags"
category: "categories"
summaryLength: 70
canonifyURLs: false
relativeURLs: false
# 图像处理
# see https://gohugo.io/content-management/image-processing/#imaging-configuration
imaging:
resampleFilter: CatmullRom
quality: 95
anchor: smart
outputFormats:
offline:
name: offline
baseName: offline
mediaType: text/html
notAlternative: true
permalinkable: true
caches:
getresource:
dir: :resourceDir/_gen
maxAge: 24h
# 隐私政策,请查看 https://gohugo.io/about/hugo-and-gdpr/
# See https://gohugo.io/about/hugo-and-gdpr/
privacy:
googleAnalytics:
anonymizeIP: true
youtube:
privacyEnhanced: true
sitemap:
changefreq: weekly
priority: 0.5
filename: sitemap.xml
menu:
main:
- name: Home
weight: 10
identifier: home
params:
icon: eva eva-home
url: /
- name: About
weight: 20
identifier: about
params:
icon: eva eva-heart
url: /about/
- name: Links
weight: 30
identifier: links
params:
icon: eva eva-people
url: /links/
- name: Archives
weight: 40
identifier: archives
params:
icon: eva eva-bar-chart
url: /archives/
# - name: Tags
# weight: 50
# identifier: tags
# params:
# icon: eva eva-hash
# url: /tags/
# - name: Categories
# weight: 60
# identifier: categories
# params:
# icon: eva eva-folder
# url: /categories/
- name: Twitter
weight: 70
identifier: twitter
params:
icon: eva eva-twitter
url: /twitter/
- name: GitHub
weight: 80
identifier: github
params:
icon: eva eva-github
url: /github/
- name: Search
weight: 999
identifier: search
params:
icon: eva eva-search
url: /search/
languages:
zh-cn:
contentDir: content/zh-hans
languageName: 中文
params:
icon: "images/i18n/zh-cn.svg" # in assets folder
twitter:
rsshub: "https://rsshub.rssforever.com"
id: "Ice_Hazymoon"
imageProcessing: true
github:
id: "Ice-Hazymoon"
minStars: 10
license:
enabled: true
name: "署名 - 非商业性使用 - 禁止演绎 4.0"
icon: "Cc-by-nc-nd.svg" # in assets folder
url: "https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh"
notification:
enabled: true
file: "README.zh.md"
en-us:
contentDir: content/en-us
languageName: English
params:
icon: "images/i18n/en-us.svg" # in assets folder
markup:
highlight:
style: dracula
guessSyntax: true
tabWidth: 4
lineNumbersInTable: true
lineNos: true
codeFences: true
goldmark:
renderer:
unsafe: true # enable html in markdown
# .Site.Params
params:
# CDN 地址
# CDN URL
publicCDN: ""
# 在首页顶部创建一个通知部分
# Create a notification section at the top of the home page
notification:
enabled: true
file: "README.md" # assets/README.md
# Rss 配置
# RSS configuration
rss:
# 如果为 false,你必须设置 Output Formats,请查看:https://gohugo.io/templates/output-formats#customizing-output-formats
# If false, you must set Output Formats, see: https://gohugo.io/templates/output-formats#customizing-output-formats
enabled: true
# 是否输出全文
# Output full text
fullText: true
# 如果为 false,你必须设置 Output Formats,请查看:https://gohugo.io/templates/output-formats#customizing-output-formats
# If false, you must set Output Formats, see: https://gohugo.io/templates/output-formats#customizing-output-formats
sitemap: true
# 网站主题颜色
# Site theme colors
themeColor: "#dd6065"
# 网站字体
# Site font
# font: '"Times New Roman", Times, "Heti Song", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
font: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif'
# 自定义脚本
# ts/custom.ts
customScript:
enable: false
pjax: true # Auto-reload in pjax mode
# 网站底部显示运行时间
# Show site runtime
runTime:
enable: true
# 网站创建时间
# Site creation time
creatTime: 2016/12/12
# 网站创建年份
# Site creation year
since: "2016"
# 显示文章过时提醒
# show warning when outdated info detected
outdatedInfoWarning:
enable: true
# 超过该天数将显示过时提醒
# A timeout reminder will be displayed if the last modification time exceeds that number of days
day: 90
# 自动切换夜间模式(使用设备设置)
# Automatic switching of night mode (using device settings)
autoDarkMode: false
# 文章分享功能
share:
twitter: true
facebook: true
weibo: true
copyLinkText: true
qrcode: true
# qrcodeAPI: "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data="
qrcodeAPI: "https://www.lofter.com/genBitmaxImage?url="
# 文章许可设置
# license
license:
enabled: true
name: "CC BY-NC-ND 4.0"
icon: "Cc-by-nc-nd.svg" # in assets folder
url: "https://creativecommons.org/licenses/by-nc-nd/4.0"
# 显示右上角 i18n 切换按钮
# Display i18n toggle button
i18nlist: true
# GitHub 页面设置
# github page
github:
id: "torvalds"
minStars: 5
# Twitter 页面设置
# tweet page
twitter:
rsshub: "https://rsshub.rssforever.com"
id: "GenshinImpact"
imageProcessing: true
# 开启图片放大功能
# Image Zoom Plugin
# see https://github.com/francoischalifour/medium-zoom
imageZoom: true
# 图片懒加载
# lazyload image
lazyload: true
# 更快速的阅读英文内容, 参考:https://bionic-reading.com/
# Read English content faster, see https://bionic-reading.com/
bionicReading:
enabled: true
# 启用谷歌翻译插件
# enable google translate in footer
googleTranslate: true
# 优化中文排版,请参考:https://github.com/vinta/pangu.js
# Optimize Chinese typography, see: https://github.com/vinta/pangu.js
pangu: true
# 文章页显示最后修改时间
# For outdated reminders
lastmod: true
# 显示阅读时间
# show reading time
readingTime: true
# 显示文章字数
# show word count
wordCount: false
# 开启文章内目录,可以在页面内单独设置
# Show table of contents
# You can enable it separately in the page
toc:
enable: true
# 超过这个字数后将显示目录
# When the article word count is greater than this value, the TOC will be displayed
wordCount: 400
# 加密功能
# encryption articles
HugoEncrypt:
# 默认密码
# default password
Password: "123456"
# 密码缓存选项 "session" or "local"
# or "local"
Storage: "session"
# 开启 Pjax 无刷新加载
# Enable pjax with swup.js
pjax: true
# 开启 PWA
# use service worker
pwa: true
# 开启数学公式
# katex
katex: true
# 开启返回顶部按钮
# backtop button
backtop: true
# 默认文章封面图片
# 图片必须位于 assets 文件夹
# Default post card featured image
# /featured.png in assets folder or https://source.unsplash.com/random
defaultFeaturedImage: false
# 自动调整图片大小并兼容 Webp 格式
# Optimize your images and SEO
imageProcessing:
cover: true
content: true
autoResize:
- 640
- 1080
- 1440
webp: true
opengraph:
twitter: # see https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started
cardType: summary_large_image # summary or summary_large_image
site: "@Ice_Hazymoon"
image: "featured.png" # in assets folder or set to false
author: Ice-Hazymoon
keywords:
- Hugo
- Hugo Theme
- Luna
description: "A simple, performance-first, SEO-friendly Hugo theme"
build:
noJSConfigInAssets: true