Skip to content

Commit b1b5edf

Browse files
committed
big upgrade to hexo 5
1 parent 6e96d75 commit b1b5edf

File tree

111 files changed

+1433
-15423
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1433
-15423
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ db.json
44
*.log
55
node_modules/
66
public/
7-
.deploy*/
7+
.deploy*/
8+
tmp/

source/_data/melody.yml _config.melody.yml

+67-26
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ theme_color:
1212
hr_color: "#d9e8c7"
1313
tag_start_color: "#afe572"
1414
tag_end_color: "#55a004"
15+
header_text_color: "#EEEEEE"
16+
footer_text_color: "#EEEEEE"
1517

1618
# Main menu navigation
1719
menu:
@@ -27,7 +29,7 @@ menu:
2729

2830
# Favicon
2931
# ---------------
30-
favicon: /hacrkoid.png
32+
favicon: /hackroid.png
3133

3234
# PWA
3335
# See https://github.com/JLHwung/hexo-offline
@@ -71,27 +73,29 @@ algolia_search:
7173
per_page: 10
7274

7375
# Local search
74-
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/third-party-support?id=local-search
76+
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/third-party-support.html#local-search
7577
# ---------------
7678
local_search:
77-
enable: true
79+
enable: false
7880
labels:
7981
input_placeholder: Search for Posts
8082
hits_empty: "We didn't find any results for the search: ${query}"
8183

8284
# MathJax
83-
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/third-party-support?id=mathjax
85+
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/third-party-support.html#mathjax
8486
# ---------------
8587
mathjax:
8688
enable: false
8789
cdn: https://cdn.jsdelivr.net/npm/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
8890

8991
# KaTeX
92+
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/third-party-support.html#katex
9093
# ---------------
9194
katex:
92-
enable: true
95+
enable: false
9396
cdn:
9497
css: https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css
98+
hide_scrollbar: true
9599

96100
# Toggle fireworks (IE >= 10)
97101
# ---------------
@@ -110,8 +114,8 @@ tencent_analytics: 66385937
110114
# ---------------
111115
stylesheets:
112116
- /css/index.css
113-
# scripts loaded in the end of the body
114-
# ---------------
117+
# scripts loaded in the end of the body
118+
# ---------------
115119
scripts:
116120
- /js/utils.js
117121
- /js/fancybox.js
@@ -122,12 +126,12 @@ scripts:
122126
- /js/scroll.js
123127
- /js/head.js
124128

125-
# cdn for third-party library
126-
# ---------------
129+
# cdn for third-party library
130+
# ---------------
127131
cdn:
128132
css:
129133
fontawesome: https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css
130-
fontawesomeV5: https://use.fontawesome.com/releases/v5.8.1/css/all.css
134+
fontawesomeV5: https://use.fontawesome.com/releases/v5.3.1/css/all.css
131135
js:
132136
anime: https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js
133137
jquery: https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js
@@ -140,14 +144,15 @@ cdn:
140144
avatar: https://i.loli.net/2019/04/05/5ca72d9fdb4ec.png
141145

142146
top_img: false # false or url of img
143-
# https://i.loli.net/2019/04/05/5ca72d36af6f1.jpg
147+
148+
top_img_height: 60 # best range: 60 - 100
144149

145150
post_meta:
146151
date_type: created # created or updated
147152
categories: true
148153
tags: true
149154

150-
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/additional-package-support?id=word-counting
155+
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/additional-package-support.html#word-counting
151156
wordcount:
152157
enable: true
153158

@@ -160,7 +165,7 @@ post_copyright:
160165
license: CC BY-NC-SA 4.0
161166
license_url: https://creativecommons.org/licenses/by-nc-sa/4.0/
162167

163-
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/theme-config?id=auto-excerpt
168+
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/theme-config.html#auto-excerpt
164169
auto_excerpt:
165170
enable: true
166171
length: 150
@@ -176,8 +181,8 @@ slide:
176181
mouseWheel: false
177182
transition: slide
178183
transitionSpeed: default
179-
parallaxBackgroundImage: ''
180-
parallaxBackgroundSize: ''
184+
parallaxBackgroundImage: ""
185+
parallaxBackgroundSize: ""
181186
parallaxBackgroundHorizontal: null
182187
parallaxBackgroundVertical: null
183188

@@ -228,11 +233,12 @@ disqus:
228233

229234
# valine comment system. https://valine.js.org
230235
# valine:
231-
# enable: false # if you want use valine,please set this value is ture
236+
# enable: false # if you want use valine,please set this value is true
232237
# appId: # leancloud application app id
233238
# appKey: # leancloud application app key
234239
# notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki
235240
# verify: false # valine verify code (true/false)
241+
# recordip: false # whether record commentor's ip (true/false)
236242
# pageSize: 10 # comment list page size
237243
# avatar: mm # gravatar style https://valine.js.org/#/avatar
238244
# lang: zh-cn # i18n: zh-cn/en
@@ -243,7 +249,7 @@ disqus:
243249
# ---------------
244250
since: 2017
245251

246-
# footer_custom_text:
252+
# footer_custom_text: put custom text directly or put hitokoto to fetch random texts
247253

248254
ICP:
249255
enable: false
@@ -255,29 +261,34 @@ busuanzi:
255261
enable: true
256262
# custom uv span for the whole site
257263
site_uv: true
258-
site_uv_header: <i class="fas fa-user"></i>
264+
site_uv_header: <i class="fa fa-user"></i>
259265
site_uv_footer:
260266
# custom pv span for the whole site
261267
site_pv: true
262-
site_pv_header: <i class="fas fa-eye"></i>
268+
site_pv_header: <i class="fa fa-eye"></i>
263269
site_pv_footer:
264270
# custom pv span for one page only
265271
page_pv: true
266-
page_pv_header: <i class="fas fa-file"></i>
272+
page_pv_header: <i class="fa fa-file"></i>
267273
page_pv_footer:
268274

275+
# canvas_ribbon
276+
# See: https://github.com/hustcc/ribbon.js
277+
canvas_ribbon:
278+
enable: true
279+
size: 150
280+
alpha: 0.6
281+
zIndex: -1
282+
click_to_change: false
283+
269284
# Sidebar Settings
270285
# ---------------
271286
links_title: Links
272287
links:
273-
sustech-icu: https://sustech.icu
274-
sustech-wtf: https://sustech.wtf
275-
shintaku: https://www.shintaku.xyz
288+
shintaku: https://www.shintaku.top
276289
lwrless: https://blog.lwrless.xyz
277-
pluskid: http://freemind.pluskid.org
278290
hguandl: https://hguandl.com
279291
scottyi: https://scottyi.club
280-
shiloh: http://shiloh.me
281292
五島潤: https://zzw.at
282293
Asteria: https://prinz-asteria.com
283294
licia: https://s-cry.com
@@ -286,14 +297,18 @@ links:
286297
adamyi: https://www.adamyi.com
287298
田宝: https://phantomt.github.io
288299
子健: http://zijian-zhang.com
300+
pluskid: http://freemind.pluskid.org
301+
shiloh: http://shiloh.me
289302

290303
# Follow Me Button
291-
# ---------------
292304
follow:
293305
enable: true
294306
url: 'https://github.com/hackroid'
295307
text: 'Fo我啊:)'
296308

309+
# controls the sidebar showing or hidden in different pages
310+
sidebar_display: all # all/index/post/index-none/post-none/hidden
311+
297312
# Ads
298313
# ---------------
299314
# Google Adsense
@@ -302,3 +317,29 @@ google_adsense:
302317
js: //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
303318
client: ca-pub-...........
304319
enable_page_level_ads: true
320+
321+
# Google Webmaster tools verification setting
322+
# See: https://www.google.com/webmasters/
323+
google_site_verification:
324+
325+
# Bing Webmaster tools verification setting
326+
# See: https://www.bing.com/webmaster/
327+
bing_site_verification:
328+
329+
# Yandex Webmaster tools verification setting
330+
# See: https://webmaster.yandex.ru/
331+
#yandex_site_verification:
332+
333+
# Baidu Webmaster tools verification setting
334+
# See: https://ziyuan.baidu.com/site/
335+
baidu_site_verification:
336+
337+
# 360 Webmaster tools verification setting
338+
# see http://zhanzhang.so.com/
339+
qihu_site_verification:
340+
341+
# avoid baidu transformation
342+
disable_baidu_transformation: true
343+
344+
# 404 Page SubTitle
345+
404Text: 页面已经出事儿了,谢谢大家🙏

_config.yml

+30-69
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ language: en
1414
timezone: Asia/Hong_Kong
1515

1616
# URL
17-
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
17+
## If your site is put in a subdirectory, set url as 'http://example.com/child' and root as '/child/'
1818
url: https://blog.hackroid.com
1919
root: /
2020
permalink: :year/:month/:day/:title/
2121
permalink_defaults:
22+
pretty_urls:
23+
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
24+
trailing_html: true # Set to false to remove trailing '.html' from permalinks
2225

2326
# Directory
2427
source_dir: source
@@ -34,7 +37,10 @@ skip_render:
3437
new_post_name: :title.md # File name of new posts
3538
default_layout: post
3639
titlecase: false # Transform title into titlecase
37-
external_link: true # Open external links in new tab
40+
external_link:
41+
enable: true # Open external links in new tab
42+
field: site # Apply to the whole site
43+
exclude: ''
3844
filename_case: 0
3945
render_drafts: false
4046
post_asset_folder: false
@@ -44,7 +50,14 @@ highlight:
4450
enable: true
4551
line_number: true
4652
auto_detect: false
47-
tab_replace:
53+
tab_replace: ''
54+
wrap: true
55+
hljs: false
56+
prismjs:
57+
enable: false
58+
preprocess: true
59+
line_number: true
60+
tab_replace: ''
4861

4962
# Home page setting
5063
# path: Root path for your blogs index page. (default = '')
@@ -60,96 +73,44 @@ default_category: uncategorized
6073
category_map:
6174
tag_map:
6275

76+
# Metadata elements
77+
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
78+
meta_generator: true
79+
6380
# Date / Time format
6481
## Hexo uses Moment.js to parse and display date
6582
## You can customize the date format as defined in
6683
## http://momentjs.com/docs/#/displaying/format/
6784
date_format: YYYY-MM-DD
6885
time_format: HH:mm:ss
86+
## updated_option supports 'mtime', 'date', 'empty'
87+
updated_option: 'mtime'
6988

7089
# Pagination
7190
## Set per_page to 0 to disable pagination
7291
per_page: 10
7392
pagination_dir: page
7493

94+
# Include / Exclude file(s)
95+
## include:/exclude: options only apply to the 'source/' folder
96+
include:
97+
exclude:
98+
ignore:
99+
75100
# Extensions
76101
## Plugins: https://hexo.io/plugins/
77102
## Themes: https://hexo.io/themes/
78103
theme: melody
79104

80105
# Deployment
81-
## Docs: https://hexo.io/docs/deployment.html
106+
## Docs: https://hexo.io/docs/one-command-deployment
82107
deploy:
83-
type:
84-
85-
# Search
86-
search:
87-
path: search.xml
88-
field: post
89-
content: true
108+
type: ''
90109

91110
# offline config passed to sw-precache.
92111
offline:
93112
maximumFileSizeToCacheInBytes: 10485760 # The maximum file size cached, in bytes
94113
staticFileGlobs:
95114
- public/**/*.{js,html,css,png,jpg,gif,svg,webp,eot,ttf,woff,woff2}
96-
# Static file collection, if your site uses files such as webp format, please add the file type.
97115
stripPrefix: public
98116
verbose: true
99-
runtimeCaching:
100-
# CDNs - should be cacheFirst, since they should be used specific versions so should not change
101-
- urlPattern: /* # If you need to load CDN resources, please configure this option. If not, you can configure it.
102-
handler: cacheFirst
103-
options:
104-
origin: https://blog.hackroid.com # can be replaced with your url
105-
106-
# generate rss
107-
feed:
108-
type: atom
109-
path: atom.xml
110-
limit: false
111-
hub:
112-
content: true
113-
content_limit:
114-
content_limit_delim:
115-
order_by: -date
116-
icon: images/pwaicons/384_favicon_trans.png
117-
118-
# generate sitemap
119-
sitemap:
120-
path: sitemap.xml
121-
baidusitemap:
122-
path: baidusitemap.xml
123-
124-
# katex
125-
markdown_it_plus:
126-
highlight: true
127-
html: true
128-
xhtmlOut: true
129-
breaks: true
130-
langPrefix:
131-
linkify: true
132-
typographer:
133-
quotes: “”‘’
134-
pre_class: highlight
135-
136-
# live2d
137-
live2d:
138-
enable: true
139-
scriptFrom: local
140-
pluginRootPath: live2dw/
141-
pluginJsPath: lib/
142-
pluginModelPath: assets/
143-
tagMode: false
144-
log: false
145-
model:
146-
use: live2d-widget-model-miku
147-
display:
148-
position: right
149-
width: 150
150-
height: 300
151-
mobile:
152-
show: true
153-
react:
154-
opacity: 0.7
155-

0 commit comments

Comments
 (0)