-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
153 lines (127 loc) · 4.16 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
## config example
## If you have created a new hugo site and dont know how to do next,
## just DELETE config.toml file at the site root directory
## and then copy all the files from exampleSite folder to site root folder (that you just created).
## Your posts files should be in /content/posts/ folder. See the [params.mainSections] section below.
baseURL: https://chenyyds.com/
## This would show at <head> section in html files
languageCode: zh-CN
theme: hugo-theme-icarus-lite
title: 老陳网志
hasCJKLanguage: true
summaryLength: 1000
paginate: 10
permalinks:
posts: /:section/:filename/
pages: /:section/:filename/
## Custom Params
params:
description: ## Site description
dateFormat: "Jan 2, 2006"
externalStyle: false ## Set false to use internal style; true to external CSS file.
externalStyleVersion: 20060102 ## If you need to refresh the CSS file for browsers, then change this number.
mainSections: posts ## This means that you need to put posts .md files in the folder /content/posts/ , then these files can be viewed at Homepage.
navbarSticky: true ## Set to true to make navbar menu sticky
navbarLogo:
enabled: true
imgEnabled: true
imgPath: "/favicon.png" ## at /static folder
imgWidth: "24px"
imgHeight: "24px"
svgEnabled: false ## Put your SVG code in /layout/partials/custom-logo.html if enabled
## Buttons Text
PageBack: "Back to Prev"
OlderPosts: "Older"
NewerPosts: "Newer"
read_more: "Read More"
## 评论
comments: true
## Body Text
titleClickable: true # Set true to make the title clickable as the ReadMore button
postsNoSummary: false ## Set true to always show full content for Posts
pagesNoSummary: false ## Set true to always show full content for Pages
postsReadMore: false ## Set true to always show Read More button for Posts
pagesReadMore: false ## Set true to always show Read More button for Pages
footerCopyright:
siteUrl: Chenyyds.com/老陳网志 ## This would show after footer text "© 202X"
## for websites hosted on mainland China servers.
## 下面这部分是页脚的备案信息
ICP:
enabled: true
province: 渝
certnum: "18007511"
## Navbar Menus
menu:
home:
- identifier: "posts" ## This identifier value needs to be equal to the [params.mainSections] above
name: "首页" ## The NAME will show as menu text
title: Home ## The TITLE will show on the Browser
url: /
weight: 1
main:
- identifier: "following" ## Each identifier value should be unique and equal to the name of the FOLDER in which those original .md files are
name: "星标"
title: following / Custom Title
url: /following/
weight: 2
## Try to ollow these rules to add menus as you like
- identifier: "bb"
name: "哔哔"
url: /bb/
weight: 3
- identifier: "me"
name: "关于"
url: /about/
weight: 4
## Docs: https://gohugo.io/getting-started/configuration-markup#goldmark
markup:
goldmark:
extensions:
definitionList: true
footnote: true
linkify: true
strikethrough: true
table: true
taskList: true
typographer: true
parser:
attribute:
block: false
title: true
autoHeadingID: true ## Set to false if you neet to customize the headings' IDs
autoHeadingIDType: github
renderer:
hardWraps: false
unsafe: true ## Set to true if you have HTML content inside Markdown
xhtml: false
## Decrease the size of .html and .css files
minify:
disableCSS: false
disableHTML: false
disableJS: true
disableJSON: false
disableSVG: false
disableXML: false
minifyOutput: true
tdewolff:
css:
keepCSS2: false
precision: 0
html:
keepComments: false
keepConditionalComments: true
keepDefaultAttrVals: true
keepDocumentTags: true
keepEndTags: true
keepQuotes: false
keepWhitespace: false
js:
keepVarNames: false
precision: 0
json:
keepNumbers: false
precision: 0
svg:
precision: 0
xml:
keepWhitespace: false