1
1
baseURL = " https://fity.me"
2
2
title = " Fity's Blog"
3
- theme = " PaperModX "
4
- DefaultContentLanguage = " zh" # Theme's display language, supports: en, fr, zh, zh-hant
3
+ # theme = "hugo-theme-stack "
4
+ DefaultContentLanguage = " zh-cn " # Theme's display language, supports: en, fr, zh, zh-hant
5
5
languageCode = " zh-cn"
6
6
copyright = " All rights reserved."
7
- googleAnalytics = " UA-127996141-1"
7
+ # googleAnalytics = "UA-127996141-1"
8
8
9
9
enableRobotsTXT = true
10
10
buildDrafts = false
11
11
buildFuture = false
12
12
buildExpired = false
13
13
14
+ [[module .imports ]]
15
+ path = " github.com/CaiJimmy/hugo-theme-stack/v3"
16
+
14
17
[languages ]
15
18
16
- [languages .zh ]
17
- disabled = false
18
- languageCode = " zh"
19
- languageName = " ZH"
20
- weight = 0
21
- [languages .zh .params .homeInfoParams ]
22
- Title = " 中年自救记录"
23
- Content = " 一名普通的贫穷码农,什么都不会。人到中年想自救。"
24
-
25
- [languages .en ]
26
- disabled = false
27
- languageCode = " en"
28
- languageName = " EN"
29
- weight = 1
30
- [languages .en .params .homeInfoParams ]
31
- Title = " Wrinkly's poor life"
32
- Content = " A poor wrinkly with nothing useful skills. Here's a birdview of my life."
19
+ [languages .zh-cn ]
20
+ disabled = false
21
+ languageCode = " zh-cn "
22
+ languageName = " ZH"
23
+ weight = 0
24
+ [languages .zh-cn .params .homeInfoParams ]
25
+ Title = " 中年自救记录"
26
+ Content = " 一名普通的贫穷码农,什么都不会。人到中年想自救。"
27
+
28
+ [languages .en ]
29
+ disabled = false
30
+ languageCode = " en"
31
+ languageName = " EN"
32
+ weight = 1
33
+ [languages .en .params .homeInfoParams ]
34
+ Title = " Wrinkly's poor life"
35
+ Content = " A poor wrinkly with nothing useful skills. Here's a birdview of my life."
33
36
34
37
[minify ]
35
- disableXML = true
36
- minifyOutput = true
38
+ disableXML = true
39
+ minifyOutput = true
37
40
38
41
[params ]
39
- TocSide = " right"
40
- env = " production" # to enable google analytics, opengraph, twitter-cards and schema
41
- title = " Fity's Blog" # will set 'og:site_name'
42
+ env = " production" # to enable google analytics, opengraph, twitter-cards and schema
43
+ title = " Fity's Blog" # will set 'og:site_name'
42
44
description = " IT Guy with too much things to learn"
43
45
keywords = [" Blog" , " Portfolio" ]
44
46
author = " Fity"
@@ -50,53 +52,102 @@ ShowBreadCrumbs = true
50
52
ShowCodeCopyButtons = false
51
53
ShowWordCount = true
52
54
ShowRssButtonInSectionTermList = true
53
- UseHugoToc = true
54
- showtoc = true
55
- tocopen = true
56
- comments = true
57
55
EnableImageZoom = true
58
56
57
+ mainSections = [" posts" , ]
58
+ featuredImageField = " image"
59
+ rssFullContent = true
60
+ readingTime = true
61
+
62
+ [params .imageProcessing .cover ]
63
+ Enabled = true
64
+ [params .imageProcessing .content ]
65
+ Enabled = true
66
+
67
+ [params .sidebar .avatar ]
68
+ Enabled = true
69
+ Local = true
70
+ Src = " images/avatar.jpg"
71
+
72
+ [params .Author ]
73
+
74
+
75
+ [params .article ]
76
+ headingAnchor = true
77
+ math = true
78
+ # toc = true
79
+ readingTime = true
80
+
81
+ # # Widgets
82
+ # [[params.widgets.homepage]]
83
+ # type = "search"
84
+
85
+ # [[params.widgets.homepage]]
86
+ # type = "archives"
59
87
60
- [params .homeInfoParams ]
61
- Title = " 中年自救记录"
62
- Content = " 一名普通的贫穷码农,什么都不会。人到中年想自救。"
88
+ # [[params.widgets.homepage]]
89
+ # type = "categories"
63
90
64
- [params .cover ]
65
- responsiveImages = true
66
- linkFullImages = true
91
+ [[params .widgets .page ]]
92
+ type = " toc"
67
93
68
- [[params .socialIcons ]]
69
- name = " GitHub"
70
- url = " https://github.com/fity"
71
- [[params .socialIcons ]]
72
- name = " Email"
73
-
74
- [[params .socialIcons ]]
75
- name = " RSS"
76
- url = " /index.xml"
94
+ [[widgets .homepage ]]
95
+ type = " tag-cloud"
77
96
78
- [params .assets ]
79
- favicon = " /images/favicon.ico"
97
+ [params .artcle .license ]
98
+ enabled = false
99
+ default = " Licensed under CC BY-NC-SA 4.0"
100
+
101
+ [params .comments ]
102
+ enabled = true
103
+ provider = " waline"
104
+ [params .comments .waline ]
105
+ serverURL = " https://comments.fity.me/"
106
+
107
+ [params .homeInfoParams ]
108
+ Title = " 中年自救记录"
109
+ Content = " 一名普通的贫穷码农,什么都不会。人到中年想自救。"
110
+
111
+ [params .cover ]
112
+ responsiveImages = true
113
+ linkFullImages = true
114
+
115
+ [[params .socialIcons ]]
116
+ name = " GitHub"
117
+ url = " https://github.com/fity"
118
+ [[params .socialIcons ]]
119
+ name = " Email"
120
+
121
+ [[params .socialIcons ]]
122
+ name = " RSS"
123
+ url = " /index.xml"
124
+
125
+ [params .assets ]
126
+ favicon = " /images/favicon.ico"
80
127
81
128
82
129
[markup ]
83
- [markup .highlight ]
84
- codeFences = true
85
- guessSyntax = false
86
- hl_Lines = " "
87
- lineNoStart = 1
88
- lineNos = false
89
- lineNumbersInTable = true
90
- noClasses = true
91
- style = " perldoc"
92
- tabWidth = 4
130
+ [markup .highlight ]
131
+ codeFences = true
132
+ guessSyntax = false
133
+ hl_Lines = " "
134
+ lineNoStart = 1
135
+ lineNos = false
136
+ lineNumbersInTable = true
137
+ noClasses = true
138
+ style = " perldoc"
139
+ tabWidth = 4
93
140
94
141
[taxonomies ]
95
- author = " Fity"
96
- tag = " tags"
97
- category = " categories"
98
- series = " series"
142
+ author = " Fity"
143
+ tag = " tags"
144
+ category = " categories"
145
+ series = " series"
99
146
147
+ [[menu .main ]]
148
+ url = " /posts"
149
+ name = " Posts"
150
+ weight = 1
100
151
[[menu .main ]]
101
152
url = " /categories"
102
153
name = " Categories"
@@ -117,3 +168,10 @@ weight = 5
117
168
# url = "/index.xml"
118
169
# name = "RSS"
119
170
# weight = 6
171
+
172
+ [[menu .social ]]
173
+ identifier = " github"
174
+ name = " Github"
175
+ url = " https://github.com/fity"
176
+ [menu .social .params ]
177
+ icon = " brand-github"
0 commit comments