-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhugo.yaml
134 lines (122 loc) · 4.15 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
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
baseURL: "https://examplesite.com/" # 域名
languageCode: zh-cn # 语言
title: ExampleSite # 网站title
paginate: 5 # 每页显示的文章数
theme: PaperMod # 主题 enableRobotsTXT: true # 从模版生产robot.txt文件, 用于允许或禁止爬虫
buildDrafts: false # draft pages不会发布
buildFuture: false # publishdate在将来的不会发布
buildExpired: false # 过期的不会发布
minify:
disableXML: true # 不生成index.xml
minifyOutput: true
params:
env: production # to enable google analytics, opengraph, twitter-cards and schema.
# title: ExampleSite # 网站title
# description: "ExampleSite description" # 网站description
keywords: [Xin Blog] # 网站关键词
author: Xin # 网站作者
DateFormat: "January 2, 2006" # 时间格式
defaultTheme: auto # dark, light # 默认主题
disableThemeToggle: false # 禁用切换主题
ShowReadingTime: true # 展示阅读耗时时长
ShowShareButtons: true # 展示分享按钮
ShowPostNavLinks: true # 展示上一篇、下一篇跳转
ShowBreadCrumbs: true # Show BreadCrumb Navigation above single post/page
ShowCodeCopyButtons: true # 显示代码复制按钮
ShowWordCount: true # 展示文章单词数
ShowRssButtonInSectionTermList: true # To show RSS icon in Section, Term and List pages
UseHugoToc: true # To use Hugo's default Toc instead of custom
disableSpecial1stPost: false # To disable no-card special appearance of 1st post
disableScrollToTop: false # 禁用滑动到顶部按钮
comments: false # 开启评论
hidemeta: false # 隐藏文章的meta信息
hideSummary: false # To Hide summary being shown in list pages
showtoc: true # 显示文章内容目录
tocopen: true # 文章内容目录展开
hideFooter: true # 隐藏footer
math: true
assets:
# disableHLJS: true # to disable highlight.js
# disableFingerprinting: true
favicon: "<link / abs url>" # 网站favicon
favicon16x16: "<link / abs url>"
favicon32x32: "<link / abs url>"
apple_touch_icon: "<link / abs url>"
safari_pinned_tab: "<link / abs url>"
label:
text: "Xin's Blog"
icon: "https://img2.baidu.com/it/u=792555388,2449797505&fm=253&fmt=auto&app=138&f=JPEG?w=667&h=500"
iconHeight: 35
# profile-mode
profileMode:
enabled: false # 进来先展示个人资料
title: ExampleSite
subtitle: "This is subtitle"
imageUrl: "<img location>"
imageWidth: 120
imageHeight: 120
imageTitle: my image
buttons:
- name: Posts
url: posts
- name: Tags
url: tags
# home-info mode
# home页面信息展示
# homeInfoParams:
# Title: "Hi there \U0001F44B"
# Content: Welcome to my blog
# 社交媒体icon
# socialIcons:
# - name: x
# url: "https://x.com/"
# - name: stackoverflow
# url: "https://stackoverflow.com"
# - name: github
# url: "https://github.com/"
cover:
hidden: true # hide everywhere but not in structured data
hiddenInList: true # hide on list pages and home
hiddenInSingle: true # hide on single page
# 编辑文章
# editPost:
# URL: "https://github.com/<path_to_repo>/content"
# Text: "Suggest Changes" # edit text
# appendFilePath: true # to append file path to Edit link
# 文章搜索
# for search
# https://fusejs.io/api/options.html
fuseOpts:
isCaseSensitive: false
shouldSort: true
location: 0
distance: 1000
threshold: 0.4
minMatchCharLength: 0
limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
keys: ["title", "permalink", "summary", "content"]
# 菜单
menu:
main:
- identifier: posts
name: posts
url: /posts/
weight: 10
- identifier: leetcode topics
name: leetcode专题
url: /leetcode-topics/
weight: 20
- identifier: leetcode problems
name: leetcode题解
url: /leetcode-problems/
weight: 30
# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
pygmentsUseClasses: true
markup:
highlight:
noClasses: false
# anchorLineNos: true
# codeFences: true # 代码围栏
# guessSyntax: true
# lineNos: true # 显示行号
# style: monokai