-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_config.hexo-theme-redefine.yml
307 lines (267 loc) · 11.8 KB
/
_config.hexo-theme-redefine.yml
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
# ---------------------------------------------------------------------------------------
# Your basic info
# ---------------------------------------------------------------------------------------
base_info:
title: 葛覃谷 # Site title
author: TomLiu # Author name
subtitle: 'Blog Of TomLiu'
url: https://tomsweet.github.io # Site url
# Logo image (You can use local image, image external link or don’t fill)
logo_img: # logo image on the left of the navigation bar
# ---------------------------------------------------------------------------------------
# Theme style settings
# ---------------------------------------------------------------------------------------
style:
# Theme primary color
primary_color: "#ffffff"
# Avatar (You can use local image or image external link)
avatar: /images/redefine-avatar.svg # avatar of the author
# Favicon (You can use local image or image external link)
favicon: /images/redefine-logo.svg # favicon of the site
# Article image align position
article_img_align: center # value: left | center
# Right side width
right_side_width: 210px #sidebar width, for toc
# Content area max width
content_max_width: 1000px #content max width, for article
#navigation bar background color (from left to right)
nav_color:
left: "#f78736" #left side
right: "#367df7" #right side
transparency: 35 #percent (10-99)
# Mouse hover
hover:
shadow: true # shadow effect when the mouse hover
scale: false # scale effect when the mouse hover
# First screen
first_screen:
enable: true
background_image:
light: /images/wallhaven-wqery6-light.webp # background image of the first screen, use relative path or external link (if your website is in subdirectory, use external link)
dark: /images/wallhaven-wqery6-dark.webp # background image of the first screen, use relative path or external link (if your website is in subdirectory, use external link)
title_color:
light: "#fff" # first screen title color (light mode)
dark: "#d1d1b6" # first screen title color (dark mode)
description: 葛之覃兮,施于中谷。<br/>维叶萋萋,黄鸟于飞。<br/>集于灌木,其鸣喈喈。 # the title in the middle of the first screen. HTML supported (e.g. svg html code of your logo)
custom_font: # custom font for the first screen
enable: false
font_family: # the font family name of the url below
font_url: # The url to the font file
# Scroll style settings
scroll:
progress_bar: # reading progress bar
enable: true
percent: # reading progress percent
enable: false
# ---------------------------------------------------------------------------------------
# Social contact link
# ---------------------------------------------------------------------------------------
social_contact: # social contact icons in the first screen, you can add more by using fontawesome icon names
enable: true
links:
github: https://github.com/liugt34 # your GitHub URL
instagram: # your Instagram URL
zhihu: # your ZhiHu URL
twitter: # your twitter URL
email: [email protected] # your email
# ...... # you can add more
# ---------------------------------------------------------------------------------------
# Navigation menu
# ---------------------------------------------------------------------------------------
menu: #you can customize, i18n files are in the theme's languages folder. fa-regular recommended
Home:
path: /
icon: fa-regular fa-house # can be empty
Archives:
path: /archives
icon: fa-regular fa-archive # can be empty
# Status:
# path: https://status.evanluo.top/
# icon: fa-regular fa-chart-bar
# About:
# icon: fa-regular fa-user
# submenus:
# Me: /about
# Github: https://github.com/EvanNotFound/hexo-theme-redefine
# Blog: https://ohevan.com
# Friends: /friends
# Links:
# icon: fa-regular fa-link
# submenus:
# Link1: /link1
# Link2: /link2
# Link3: /link3
# ...... # you can add more
# ---------------------------------------------------------------------------------------
# Home page article block display settings
# ---------------------------------------------------------------------------------------
home_article:
date_format: auto # date format in home page article block, value: auto | relative | YYYY-MM-DD | YYYY.MM.DD HH:mm:ss | DD/MM/YYYY | and etc. Support moment js format, see: https://momentjscom.readthedocs.io/en/latest/moment/04-displaying/01-format/
category:
enable: true # show category in home page article block
limit: 3 # max number of categories shown in home page article block
tag:
enable: true # show tags in home page article block
limit: 3 # max number of tags shown in home page article block
# ---------------------------------------------------------------------------------------
# Post page Settings
# ---------------------------------------------------------------------------------------
post:
# Post word count
# Dependencies: hexo-wordcount (npm install hexo-wordcount)
# See: https://github.com/willin/hexo-wordcount
word_count:
enable: true
wordcount: true # word count, one article
min2read: true # time to read, one article
# Author label
author_label:
enable: true
auto: false # if true, show Lv1, Lv2, Lv3... , If false, show custom label
# label array item can be one or more
custom_label_list: ["lol"]
# ---------------------------------------------------------------------------------------
# Code copy
# ---------------------------------------------------------------------------------------
code_block:
copy: true # enable code copy button
style: mac # mac | simple
custom_font: # custom font family, default: Ubuntu Mono
enable: false
font_family: # font family name
font_url: # font url
# ---------------------------------------------------------------------------------------
# Table of Contents in the Sidebar
# ---------------------------------------------------------------------------------------
toc:
enable: true
# Automatically add list number to toc.
number: false
# If true, all level of TOC in a post will be displayed, rather than the activated part of it.
expand_all: true
# If true, open TOC every time when you enter the article page
init_open: true
# ---------------------------------------------------------------------------------------
# Post copyright info
# ---------------------------------------------------------------------------------------
copyright_info:
enable: true
# ---------------------------------------------------------------------------------------
# Website count
# ---------------------------------------------------------------------------------------
website_count:
# busuanzi
# See: http://ibruce.info/2015/04/04/busuanzi/
busuanzi_count:
enable: true
site_uv: true
site_pv: true
page_pv: true
# ---------------------------------------------------------------------------------------
# Local Search
# Dependencies: hexo-generator-searchdb
# See: https://github.com/theme-next/hexo-generator-searchdb
# ---------------------------------------------------------------------------------------
local_search:
enable: false
preload: true # Preload the search data when the page loads
# ---------------------------------------------------------------------------------------
# Comment plugin
# ---------------------------------------------------------------------------------------
comment:
enable: true
use: gitalk # values: waline | gitalk | twikoo
# Waline
# See: https://waline.js.org/guide/get-started.html
waline:
serverUrl: # Waline server url(vercel) example: https://example.example.com
lang: zh-CN # Waline language, default: zh-CN. See: https://waline.js.org/guide/client/i18n.html
# Gitalk
# See: https://github.com/gitalk/gitalk
gitalk:
github_id: liugt34 # GitHub repo owner
repository: liugt34.github.io # Repository name to store issues
client_id: c32452ebdda9a2fcd6a1 # GitHub Application Client ID
client_secret: 92e94dc8020341b1b71a4d164066180d2aa65dd8 # GitHub Application Client Secret
# Twikoo
# See: https://github.com/imaegoo/twikoo
twikoo:
visitor: true
env_id: # Vercel or Tencent Cloud Function environment ID
region: # environment region. If select Guangzhou, fill in "ap-guangzhou". (optional)
# ---------------------------------------------------------------------------------------
# Friend Links page
# ---------------------------------------------------------------------------------------
friend_links:
columns: 2 # number of columns. 2 or 3
# ---------------------------------------------------------------------------------------
# RSS
# Dependencies: hexo-generator-feed
# See: https://github.com/hexojs/hexo-generator-feed
# ---------------------------------------------------------------------------------------
rss:
enable: false
# ---------------------------------------------------------------------------------------
# Lazyload image
# ---------------------------------------------------------------------------------------
lazyload:
enable: true
# ---------------------------------------------------------------------------------------
# CDN
# ---------------------------------------------------------------------------------------
cdn:
enable: false
# ---------------------------------------------------------------------------------------
# PJAX
# ---------------------------------------------------------------------------------------
pjax:
enable: true
# ---------------------------------------------------------------------------------------
# Article recommendation (transplant from Volantis)
# ---------------------------------------------------------------------------------------
recommended_article: # 文章推荐,需要 npm install nodejieba
enable: false
title: 推荐阅读
icon: fa-solid fa-bookmark
max_count: 3
placeholder_img: /images/wallhaven-wqery6-light.webp
# 不展示文章推荐:
# front-matter 使用 skip_recommended_article: true 关闭
# 不在以下文件夹文章中展示文章推荐 根目录是source/
skip_dirs:
- wiki/
# ---------------------------------------------------------------------------------------
# Fontawesome
# ---------------------------------------------------------------------------------------
fontawesome: # select fontawesome versions you want to use, in order to reduce the loading time, select as few as possible
thin: false # use fontawesome thin version or not
light: false # use fontawesome light version or not
duotone: false # use fontawesome duotone version or not
# ---------------------------------------------------------------------------------------
# Footer settings
# ---------------------------------------------------------------------------------------
footer:
runtime: true # show website running time or not
start_time: 2022/8/17 11:45:14 # the starting time of your website, format: yyyy/mm/dd hh:mm:ss
customize: # customize footer message, can be html code
icp: # ICP record number of your website, Can be null
enable: false
number: # ICP record number
url: # ICP record url
# ---------------------------------------------------------------------------------------
# Custom html code
# ---------------------------------------------------------------------------------------
inject:
enable: false
head: # inject code into <head> tag
-
-
footer: # inject code into <footer> tag
-
-
# ---------------------------------------------------------------------------------------
# Redefine Theme version (Please dont modify it)
# Please go to github to update the latest version frequently
# Github: https://github.com/EvanNotFound/hexo-theme-redefine
# ---------------------------------------------------------------------------------------
version: 1.1.3