@@ -2,7 +2,7 @@ baseURL: 'https://ppphp.github.io/'
22languageCode : ' zh-cn'
33title : " a usr/bin"
44
5- enableRobotsTXT : true
5+ enableRobotsTXT : true
66buildDrafts : false
77buildFuture : false
88buildExpired : false
@@ -12,71 +12,75 @@ minify:
1212 disableXML : true
1313 minifyOutput : true
1414
15- DisqusShortname : ' ppphp-1'
16-
1715params :
1816 comments : true
19-
20- title : ExampleSite
21- description : " ExampleSite description"
22- keywords : [Blog, Portfolio, PaperMod]
17+ disqusShortname : ' ppphp-1'
18+ social :
19+ - name : github
20+ url : " https://github.com/ppphp"
21+ - name : twitter
22+ url : " https://twitter.com/"
23+ - name : stackoverflow
24+ url : " https://stackoverflow.com"
25+ - name : rss
26+ url : " /index.xml"
27+
28+ title : " a usr/bin"
29+ description : " 个人技术博客,分享编程、工具使用和思考"
30+ keywords : [博客, 技术, 编程, 工具, 思考]
2331 author : ppphp
2432 DateFormat : " 2006-1-2"
33+ defaultTheme : auto
34+ disableThemeToggle : false
2535
2636 ShowReadingTime : true
2737 ShowShareButtons : true
2838 ShowPostNavLinks : true
2939 ShowBreadCrumbs : true
30- ShowCodeCopyButtons : false
40+ ShowCodeCopyButtons : true
3141 ShowWordCount : true
3242 ShowRssButtonInSectionTermList : true
3343 UseHugoToc : true
3444 disableSpecial1stPost : false
3545 disableScrollToTop : false
3646 hidemeta : false
3747 hideSummary : false
38- showtoc : false
48+ showtoc : true
3949 tocopen : false
50+
4051 # profile-mode
4152 profileMode :
42- enabled : false # needs to be explicitly set
43- title : ExampleSite
44- subtitle : " This is subtitle "
45- imageUrl : " < img location> "
53+ enabled : false
54+ title : " a usr/bin "
55+ subtitle : " 个人技术博客 "
56+ imageUrl : " img/avatar.png "
4657 imageWidth : 120
4758 imageHeight : 120
48- imageTitle : my image
59+ imageTitle : " avatar "
4960 buttons :
50- - name : Posts
61+ - name : 文章
5162 url : posts
52- - name : Tags
63+ - name : 标签
5364 url : tags
65+ - name : 归档
66+ url : archives
5467
5568 # home-info mode
5669 homeInfoParams :
57- Title : " Hi there \U0001F44B "
58- Content : Welcome to my blog
70+ Title : " Hi there 👋 "
71+ Content : " 欢迎来到我的个人技术博客,这里分享我在编程、工具使用和思考方面的心得体会。 "
5972
6073 cover :
61- hidden : true # hide everywhere but not in structured data
62- hiddenInList : true # hide on list pages and home
63- hiddenInSingle : true # hide on single page
64-
74+ hidden : true
75+ hiddenInList : true
76+ hiddenInSingle : true
6577
6678 editPost :
6779 URL : " https://github.com/ppphp/ppphp.github.io/tree/master/content"
68- Text : " Suggest Changes" # edit text
69- appendFilePath : true # to append file path to Edit link
70-
71-
72- socialIcons :
73- - name : twitter
74- url : " https://twitter.com/"
75- - name : stackoverflow
76- url : " https://stackoverflow.com"
77- - name : github
78- url : " https://github.com/"
80+ Text : " 建议修改"
81+ appendFilePath : true
7982
83+ # 搜索优化
8084 fuseOpts :
8185 isCaseSensitive : false
8286 shouldSort : true
@@ -86,39 +90,116 @@ params:
8690 minMatchCharLength : 0
8791 keys : ["title", "permalink", "summary", "content"]
8892
93+ # 社交媒体图标
94+ socialIcons : []
95+
96+ # SEO设置
97+ env : production
98+ analytics :
99+ google :
100+ SiteVerificationTag : " "
101+
89102menu :
90103 main :
104+ - identifier : home
105+ name : 首页
106+ url : /
107+ weight : 10
108+ - identifier : posts
109+ name : 文章
110+ url : /posts/
111+ weight : 20
91112 - identifier : archives
92- name : archives
113+ name : 归档
93114 url : /archives/
94- weight : 10
115+ weight : 30
95116 - identifier : categories
96- name : categories
117+ name : 分类
97118 url : /categories/
98- weight : 10
119+ weight : 40
99120 - identifier : tags
100- name : tags
121+ name : 标签
101122 url : /tags/
102- weight : 20
123+ weight : 50
124+ - identifier : search
125+ name : 搜索
126+ url : /search/
127+ weight : 60
103128 - identifier : works
104- name : works
129+ name : 作品
105130 url : /works/
106- weight : 10
107- # Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
131+ weight : 70
132+
133+ # 代码高亮设置
108134pygmentsUseClasses : true
109135markup :
136+ goldmark :
137+ renderer :
138+ unsafe : true
139+ parser :
140+ attribute :
141+ block : true
142+ title : true
110143 highlight :
111144 noClasses : false
112- # anchorLineNos: true
113- # codeFences: true
114- # guessSyntax: true
115145 lineNos : true
146+ lineNumbersInTable : true
116147 style : monokai
148+ guessSyntax : true
149+ codeFences : true
150+
151+ # 模块设置
117152module :
118153 imports :
119154 - path : github.com/adityatelange/hugo-PaperMod
155+ # 使用最新版本的PaperMod主题
156+ disable : false
157+
158+ # 输出设置
120159outputs :
121160 home :
122161 - HTML
123162 - RSS
124- - JSON # is necessary
163+ - JSON
164+ section :
165+ - HTML
166+ - RSS
167+ taxonomy :
168+ - HTML
169+ - RSS
170+ term :
171+ - HTML
172+ - RSS
173+
174+ # 隐私设置
175+ privacy :
176+ youtube :
177+ disable : false
178+ privacyEnhanced : true
179+ vimeo :
180+ disable : false
181+ enableDNT : true
182+ x :
183+ disable : false
184+ enableDNT : true
185+ instagram :
186+ disable : false
187+ simple : true
188+ googleAnalytics :
189+ disable : true
190+
191+ # 安全设置
192+ security :
193+ enableInlineShortcodes : false
194+ exec :
195+ allow :
196+ - dart-sass-embedded
197+ - go run
198+ - go
199+ osEnv :
200+ - (?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$
201+ funcs :
202+ - getenv
203+ allowExec : true
204+ allowOSExec : true
205+ allowExecOrigin : []
0 commit comments