-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhugo.yaml
69 lines (62 loc) · 1.92 KB
/
hugo.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
baseURL: https://blog.sunyin.fun/
languageCode: zh
title: Sunyin's Blog
theme: ["PaperMod"]
enableInlineShortcodes: true #允许内联短码
enableEmoji: true # 允许使用 Emoji 表情,建议 true
enableRobotsTXT: true # 允许爬虫抓取到搜索引擎,建议 true
defaultContentLanguage: zh # 最顶部首先展示的语言页面
defaultContentLanguageInSubdir: false
pagination:
pagerSize: 15 # 首页每页显示的文章数
params:
env: production # to enable google analytics, opengraph, twitter-cards and schema.
# author: Sunyin
defaultTheme: auto # defaultTheme: light or dark
DateFormat: "2006-01-02" # 日期格式化
ShowCodeCopyButtons: true
displayFullLangName: true
ShowPostNavLinks: true
ShowBreadCrumbs: true
VisitCount: true
ShowToc: true # 显示目录
TocOpen: true # 自动展开目录
profileMode:
enabled: true
title: "记录" # optional default will be site title
subtitle: "天高云阔,风语如歌"
# imageUrl: "<image link>" # optional
# imageTitle: "<title of image as alt>" # optional
# imageWidth: 120 # custom size
# imageHeight: 120 # custom size
buttons:
# - name: Project
# url: "/project"
- name: Area
url: "/area"
# - name: Resource
# url: "/resource"
- name: Archive
url: "/archive"
# homeInfoParams:
# title: 记录
# content: 天高云阔,风语如歌
socialIcons:
- name: github
url: "https://github.com/Sunyin0818"
# assets:
# favicon: "/favicon.ico"
# favicon16x16: "/favicon-16x16.png"
# favicon32x32: "/favicon-32x32.png"
# apple_touch_icon: "/apple-touch-icon.png"
# # safari_pinned_tab: "/safari-pinned-tab.svg"
markup:
goldmark:
renderer:
unsafe: true # HUGO 默认转义 Markdown 文件中的 HTML 代码,如需开启的话
highlight:
codeFences: true
guessSyntax: true
lineNos: true
style: monokai
tabWidth: 4