Skip to content

Commit b7c276b

Browse files
committed
update hexo-theme-redefine
1 parent 56cab7e commit b7c276b

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

_config.redefine.yml

+16-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ colors:
4646
# SITE CUSTOMIZATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> start
4747
# Docs: https://redefine-docs.ohevan.com/basic/global
4848
global:
49-
# Custom fonts
49+
# Custom global fonts
5050
fonts:
5151
# Chinese fonts
5252
chinese:
@@ -58,6 +58,11 @@ global:
5858
enable: false # Whether to enable custom english fonts
5959
family: # Font family
6060
url: # Font URL to CSS file
61+
# Custom title fonts (navbar, sidebar)
62+
title:
63+
enable: false # Whether to enable custom title fonts
64+
family: # Font family
65+
url: # Font URL to CSS file
6166
# Content max width
6267
content_max_width: 1000px
6368
# Sidebar width
@@ -80,7 +85,9 @@ global:
8085
# Whether to enable single page experience (using swup). See https://swup.js.org/. similar to pjax
8186
single_page: true
8287
# Whether to enable Preloader.
83-
preloader: true
88+
preloader:
89+
enable: true
90+
custom_message: # Custom message. If empty, the site title will be displayed
8491
# Whether to enable open graph
8592
open_graph: true
8693
# Google Analytics
@@ -122,6 +129,7 @@ home_banner:
122129
text: ['Pwn everything!', 'Make C Great Again!', 'I just popped a shell.', 'Privilege escalation achieved.', 'ASLR bypassed.', 'FSOP chain deployed.'] # subtitle text, array
123130
hitokoto: # 一言配置
124131
enable: false # Whether to enable hitokoto
132+
show_author: false # Whether to show author
125133
api: https://v1.hitokoto.cn # API URL, can add types, see https://developer.hitokoto.cn/sentence/#%E5%8F%A5%E5%AD%90%E7%B1%BB%E5%9E%8B-%E5%8F%82%E6%95%B0
126134
typing_speed: 100 # Typing speed (ms)
127135
backing_speed: 80 # Backing speed (ms)
@@ -264,6 +272,8 @@ home:
264272
# ...... # you can add more
265273
# Article date format
266274
article_date_format: auto # auto, relative, YYYY-MM-DD, YYYY-MM-DD HH:mm:ss etc.
275+
# Article excerpt length
276+
excerpt_length: 200 # Max length of article excerpt
267277
# Article categories visibility
268278
categories:
269279
enable: true # Whether to enable
@@ -308,6 +318,9 @@ articles:
308318
code_block:
309319
copy: true # Whether to enable code block copy button
310320
style: simple # mac | simple
321+
highlight_theme: # Color scheme for highlightjs code highlighting. For preview, see https://highlightjs.org/examples
322+
light: atom-one-light # light mode theme, support: github, atom-one-light, default
323+
dark: atom-one-dark # dark mode theme, support: github-dark, monokai-sublime, vs2015, night-owl, atom-one-dark, nord, tokyo-night-dark, a11y-dark, agate
311324
font: # Custom font
312325
enable: true # Whether to enable
313326
family: 'JetBrains Mono' # Font family
@@ -469,7 +482,7 @@ cdn:
469482
# Whether to enable CDN
470483
enable: false
471484
# CDN Provider
472-
provider: npmmirror # npmmirror, zstatic, sustech, staticfile, bootcdn, cdnjs, jsdelivr, unpkg, custom
485+
provider: npmmirror # npmmirror, zstatic, sustech, cdnjs, jsdelivr, unpkg, custom
473486
# Custom CDN URL
474487
# format example: https://cdn.custom.com/hexo-theme-redefine/${version}/source/${path}
475488
# The ${path} must leads to the root of the "source" folder of the theme

package-lock.json

+8-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"hexo-renderer-marked": "^6.3.0",
2424
"hexo-renderer-stylus": "^3.0.1",
2525
"hexo-server": "^3.0.0",
26-
"hexo-theme-redefine": "^2.7.0"
26+
"hexo-theme-redefine": "^2.7.1"
2727
}
2828
}

0 commit comments

Comments
 (0)