-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhugo.yaml
131 lines (121 loc) · 4.49 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
baseURL: "https://vanJker.github.io/" # 主站的 URL
title: Joken's Blog # 站点标题
copyright: "[©2024 Joken's Blog](https://vanJker.github.io/)" # 网站的版权声明,通常显示在页脚
theme: PaperMod # 主题
languageCode: zh-cn # 语言
enableInlineShortcodes: true # shortcode,类似于模板变量,可以在写 markdown 的时候便捷地插入,官方文档中有一个视频讲的很通俗
hasCJKLanguage: true # 是否有 CJK 的字符
enableRobotsTXT: true # 允许生成 robots.txt
buildDrafts: false # 构建时是否包括草稿
buildFuture: false # 构建未来发布的内容
buildExpired: false # 构建过期的内容
enableEmoji: true # 允许 emoji
pygmentsUseClasses: true
defaultContentLanguage: zh # 顶部首先展示的语言界面
defaultContentLanguageInSubdir: false # 是否要在地址栏加上默认的语言代码
languages:
zh:
languageName: "中文" # 展示的语言名
weight: 1 # 权重
taxonomies: # 分类系统
category: categories
tag: tags
# https://gohugo.io/content-management/menus/#define-in-site-configuration
menus:
main:
- name: 首页
pageRef: /
weight: 4 # 控制在页面上展示的前后顺序
- name: 归档
pageRef: archives/
weight: 5
- name: 分类
pageRef: categories/
weight: 10
- name: 标签
pageRef: tags/
weight: 10
- name: 搜索
pageRef: search/
weight: 20
- name: 关于
pageRef: about/
weight: 21
# https://github.com/adityatelange/hugo-PaperMod/wiki/Features#search-page
outputs:
home:
- HTML # 生成的静态页面
- RSS # 这个其实无所谓
- JSON # necessary for search, 这里的配置修改好之后,一定要重新生成一下
params:
env: production # to enable google analytics, opengraph, twitter-cards and schema.
description: "Theme PaperMod - https://github.com/adityatelange/hugo-PaperMod"
author: vanJker
defaultTheme: light # 默认是亮色背景
ShowShareButtons: false # 关闭分享的按钮
ShowReadingTime: true # 展示预估的阅读时长
displayFullLangName: true # 展示全名
ShowPostNavLinks: true # 展示文章导航链接,就是下一页上一页的那个
ShowBreadCrumbs: true # 是否展示标题上方的面包屑
ShowCodeCopyButtons: true # 是否展示复制代码的按钮
ShowRssButtonInSectionTermList: true # RSS 相关
ShowAllPagesInArchive: true # 在归档页面展示所有的页面
ShowPageNums: true # 展示页面的页数
ShowToc: true # 展示文章详情页的目录
comments: true # 评论
images: ["https://i.postimg.cc/7hwBy7VS/calcr.png"] # 缺省的图片,比如,博客的封面
DateFormat: "2006-01-02" # 这个时间是作者自己写的,只能这样写
social: true
# 搜索
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"]
includeMatches: true
# 评论的设置
giscus:
repo: "vanJker/vanJker.github.io"
repoId: "R_kgDOMuD7Qg"
category: "Announcements"
categoryId: "xxxxx"
mapping: "pathname"
strict: "0"
reactionsEnabled: "1"
emitMetadata: "0"
inputPosition: "bottom"
lightTheme: "light"
darkTheme: "dark"
lang: "zh-CN"
crossorigin: "anonymous"
assets:
disableHLJS: true
favicon: "favicon.png"
favicon16x16: "favicon.png"
favicon32x32: "favicon.png"
apple_touch_icon: "favicon.png"
safari_pinned_tab: "favicon.png"
# home-info mode
homeInfoParams:
Title: "Hi there is Joker Von \U0001F44B"
Content: Welcome to my blog
socialIcons:
- name: github
url: "https://github.com/vanJker"
markup:
goldmark:
renderer:
unsafe: true # 可以 unsafe,有些 html 标签和样式可能需要
highlight:
anchorLineNos: false # 不要给行号设置锚标
codeFences: true # 代码围栏
noClasses: false # TODO: 不知道干啥的,暂时没必要了解,不影响展示
lineNos: true # 代码行
lineNumbersInTable: false # 不要设置成 true,否则如果文章开头是代码的话,摘要会由一大堆数字(即代码行号)开头文章
# 这里设置 style 没用,得自己加 css
# style: "github-dark"
# style: monokai