forked from hexojs/hexo-theme-unit-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme_config.yml
370 lines (348 loc) · 12.7 KB
/
theme_config.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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
# ---------------------------------------------------------------
# !!ATTENTION!!
# There are some pivotal config which should be configured in site config!
# Read the documents for more info.
# ---------------------------------------------------------------
# ---------------------------------------------------------------
# Site Information Settings
# ---------------------------------------------------------------
head:
# Favicon
# Put your favicons into `hexo-site/source/` directory.
# To get or check favicons visit: https://realfavicongenerator.net
favicon:
# You should use a image/x-icon type icon and configure it here.
ico: https://cdn.jsdelivr.net/gh/sukkaw/[email protected]/source/img/suka-favicon.ico
# 16x16 png
small: https://i1.wp.com/theme-suka.github.io/demo/img/suka-favicon.png?w=16
# 32x32 png
medium: https://i1.wp.com/theme-suka.github.io/demo/img/suka-favicon.png?w=32
# 180x180 png
apple_touch_icon: https://i1.wp.com/theme-suka.github.io/demo/img/suka-favicon.png?w=180
# 192x192 png
large: https://i1.wp.com/theme-suka.github.io/demo/img/suka-favicon.png?w=192
# svg icon
safari_pinned_tab:
# Color
# It will defined color below:
# Android Chrome Color
# Safari Pinned Tab
color:
# PWA
# You can setup your blog as pwa with a manifest.
# https://app-manifest.firebaseapp.com where you can generate a manifest quickly
# Leave it blank if you don't have one
pwa_manifest:
# Microsoft Web App
# Windows 8 and 10 users can pin your web site on their desktop.
# Your site appears as a tile, just like a native Windows app.
# Leave it blank if you don't have one
ms_browserconfig:
# Open search
# Fill in your opensearch xml file here.
# Leave it blank if you don't have one
open_search:
# Keywords
# Define meta keywords tag
# split with ','
keywords:
# Site Verification
site_verification:
google:
baidu:
footer:
# Copyright Since
# Specify the date when the site was setup.
# For example, if you set it as 2015, then footer will show something like '© 2015 - 2018'
# If you just want to show something like '© 2018' only, simly leave it blank.
copyright_since: 2017
# Footer Text
# You can specify the text you want to show in footer, HTML tag is supported.
# For example, you can setup ICP license number as:
# custom_text: '<a href="http://www.miitbeian.gov.cn" rel="nofollow noopener noreferrer">某ICP备xxxxxxxx号-x</a>'
# Another example, you can setup 'Hosted on Coding Pages' as:
# custom_text: 'Hosted on <a href="https://pages.coding.me" rel="nofollow noopener noreferrer">Coding Pages</a>'
# Muilt line footer text is supported.
custom_text:
- Hosted on <a href="https://pages.github.com/">GitHub Pages</a> & Cloudflare
# ---------------------------------------------------------------
# Customize Settings
# ---------------------------------------------------------------
uiux:
# Muilt line slogan is supported.
slogan: Hi, nice to meet you.
# For most link color except post color
link_color:
primary_color:
# Background color
bg_color:
img:
avatar: 'https://i1.wp.com/theme-suka.github.io/demo/img/default_avatar.png?w=24'
# ---------------------------------------------------------------
# Menu Settings
# ---------------------------------------------------------------
# Nav settings
# Used to choose which
nav:
home:
use: true
archives:
use: true
rss:
use: false
share:
use: true
search:
use: true
link: /demo/search/
pages:
Page:
link: /demo/page/
Links:
link: /demo/links/
Gallery:
link: /demo/gallery/
TagsCloud:
link: /demo/tagscloud/
# SNS Share Switch
# Used to choose which items will be displayed in share menu.
sns_share:
weibo: true
facebook: true
twitter: true
telegram: true
googleplus: true
linkedin: true
qq: true
# Qrcode which will show in share menu, for redirect to other device
qrcode:
index_share: true
post_share: true
# ---------------------------------------------------------------
# Post Settings
# ---------------------------------------------------------------
post:
# Default Excerpt
# Please use <!-- more --> in the post to control excerpt accurately and will override the configuration here.
entry_excerpt: 120
# Notify on expire of the page
# To let the visitor know if the post hasn't been update for long.
expire: true
share: true
# Post License
# You can specify the text you want to show in the end of your posts and pages, HTML tag is supported.
# For example, you can setup a CC license as:
# license: 'This blog is under a <a href="/creativecommons.html" target="_blank">CC BY-NC-SA 3.0 Unported License</a>'
# You can also use Front-Matter `license` to override this setting
# or use Front-Matter `hide_license: true` to hide license on spefic post
license: 'This demo is under a <a href="/creativecommons.html" target="_blank">CC BY-NC-SA 3.0 Unported License</a>'
# Table Of Contents which will be show on right side of the post
toc:
# You can still disable toc for each single post by setting their front-matter with 'toc: false'
enable: true
# Show line number for each toc list-item or not. Default is true.
line_number: true
# ---------------------------------------------------------------
# Integrated Services
# ---------------------------------------------------------------
# Comment Systems
# Available value of "use":
# disqus | disqus_proxy | disqus_click | changyan | livere | gitment | gitalk | valine
# If you want to use gitment or gitalk,you should get the client_id and client_secret form https://github.com/settings/applications/new
# If you want to use valine,you should get the app_id and app_key form https://leancloud.cn , more setting please see https://valine.js.org
comment:
use: disqusjs
disqus:
shortname: # disqus shortname
disqusjs:
shortname: theme-suka-demo
siteName: Suka Theme Demo
api: https://disqus.skk.moe/disqus/
apikey: CjM0EUNSTrA3iZU13a11fgnGviL7KXVac0IF6XVl1ZgGPAC7qkCfGNbO4CnVBmap
admin: SukkaW
adminLabel: Admin
changyan:
appid:
conf:
thread_key_type: path # id | path. Only when you generate static id for each post before you using 'id'
livere:
data_uid:
gitment:
repo:
owner:
client_id:
client_secret:
gitalk:
repo:
owner:
client_id:
client_secret:
valine:
leancloud_appId: # leancloud application app id
leancloud_appKey: # leancloud application app key
notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki
verify: false # valine verify code (true/false)
pageSize: 10 # comment list page size
avatar: identicon # gravatar style https://valine.js.org/#/avatar
lang: zh-cn # i18n
placeholder: Just go go # valine comment input placeholder(like: Please leave your footprints )
guest_info: nick,mail,link #valine comment header info
wildfire:
database_provider: firebase # firebase or wilddog
wilddog_site_id:
firebase_api_key:
firebase_auth_domain:
firebase_database_url:
firebase_project_id:
firebase_storage_bucket:
firebase_messaging_sender_id:
theme: light # light or dark
locale: en # en or zh-CN
# Site Analytics
# Material theme has a built in Baidu's, Google's website analytics and CNZZ's analytics service
analytics:
google_site_id:
gtags_site_id:
baidu_site_id:
cnzz_site_id:
# Views Analytics
# The counter by https://busuanzi.ibruce.info
busuanzi:
enable: true
# Site views analytics support either pv or uv
# will be show at footer
site_uv:
enable: true
before: # html tag support
after: Viewers # html tag support
divider: '|' # html tag supported, something like '|' ',' '·' even '<br>', if you dont want any divider simply leave it blank,
offset: 10
site_pv:
enable: false
before: # html tag support
after: Views # html tag support
divider: # html tag supported, something like '|' ',' '·' even '<br>', if you dont want any divider simply leave it blank,
offset: 0
# Post views analytics
# will be show at post header info
post_pv:
enable: true
before: # html tag support
after: Views # html tag support
# The counter by https://valine.js.org/visitor.html
valine_counter:
# ATTENTION! You should use valine comment system to enable this feature!
enable: false
# By use config.url as id to count all site pv
site_pv:
enable: false
before: # html tag supported
after: # html tag supported
divider: # html tag supported, something like '|' ',' '·' even '<br>', if you dont want any divider simply leave it blank,
# Show pv for every post on index (Exprimental)
index_post_pv:
enable: false
before: # html tag supported
after: # html tag supported
# Show pv on post page
post_pv:
enable: false
before: # html tag supported
after: # html tag supported
# Search
# Available value of "use":
# local | google | swiftype
search:
use: local
# Swiftype
swiftype_key:
# Code highlight
# You can only enable one of them to avoid issues.
# Also you need to disable all highlight option in hexo's site config.
# highlight:
# enable: false
# line_number: false
# auto_detect: false
# tab_replace: false
#
# Suka Theme has built in those code highlight: Prism | Hanabi | Prettify
# Run `hexo clean` first after changing code highlight configuration.
# Hanabi (https://github.com/egoist/hanabi)
hanabi:
enable: false
# Prism
# Disable other code hightlight first and enable prism at site config:
# suka_theme:
# ...
# prism:
# enable: true
# Google Code Prettify
prettify:
enable: false
linenumber: true # We prefer to enable for avoiding some pretiffy's bugs.
# Prettify Theme
theme: github-v2 # It will not load any theme if you leave it blank
# You can only enable the Suka built in prettify theme here. Check the /source/lib/prettify/themes directories.
# The theme name is the css file name without `.min.css`, as [theme-name].min.css
#
# If you want to use other theme, you can leave that blank, and load your own theme by adding <link> tag using custom code.
# Learn how to use custom code here: https://theme-suka.github.io/docs/en/expert/#Add-custom-code
# ---------------------------------------------------------------
# Expert Settings
# ---------------------------------------------------------------
# !!ATTENTION!!
# Do Not Modify Below This Line, unless you know what you are doing!
# ---------------------------------------------------------------
# Vendors
# Set a CDN address for the vendor you want to customize.
# Be aware that you should use the same version as internal ones to avoid potential problems.
# We prefer you using the https protocol of CDN files whether you enable https on your site or not.
vendors:
# hexo-theme-suka
# https://github.com/SukkaW/hexo-theme-suka
suka:
style_css:
local_search_js: https://cdn.jsdelivr.net/gh/sukkaw/[email protected]/source/js/local-search.min.js
lazyload_img: 'data:image/gif;base64,R0lGODlhAQABAID/AP///wAAACwAAAAAAQABAAACAkQBADs='
hanabi_browser_js:
highlight_theme: https://cdn.jsdelivr.net/gh/sukkaw/[email protected]/source/css/highlight/github.min.css
gallery_css:
gallery_js:
# Spectre.css
# https://picturepan2.github.io/spectre/
# Version: 0.5.3
spectre:
spectre_css: https://cdn.jsdelivr.net/npm/[email protected]
# Prism & Prism Theme
# https://github.com/PrismJS/prism/ https://github.com/PrismJS/prism-themes
# Prism Version: 1.15.0 | Prism Theme Version: 1.0.1
prism:
theme: https://cdn.jsdelivr.net/gh/sukkaw/[email protected]/source/lib/prism/prism-default.min.css
line_number: https://cdn.jsdelivr.net/gh/sukkaw/[email protected]/source/lib/prism/prism-line-numbers.min.css
# Lazyload
# https://github.com/verlok/lazyload
# Version: 8.9.0
lazyload: https://cdn.jsdelivr.net/npm/[email protected]
# Busuanzi
# https://busuanzi.ibruce.info
busuanzi: https://cdn.jsdelivr.net/npm/[email protected]
# Hanabi
# https://github.com/egoist/hanabi
hanabi: https://cdn.jsdelivr.net/npm/[email protected]/dist/hanabi.min.js
# Prettify Core
# Attention! It is NOT the `run_prettify.js`!
# Version: 0.1.0
prettify:
# Prettify Theme
# You can fill in any prettify theme you want here, and it will also override the prettify theme config below.
# Personally I prefer the theme here: https://github.com/jmblog/color-themes-for-google-code-prettify
prettify_theme: https://cdn.jsdelivr.net/npm/[email protected]/dist/themes/github-v2.min.css
fragment_cache: true
# Theme Version
# localStorage cache version
verison: 1.0.1
old_verison:
- 0.2.0
- 0.0.1
- 0.1.0
- 1.0.0