Skip to content

Commit

Permalink
update hexo-theme-redefine
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMaDev committed Sep 4, 2024
1 parent 56cab7e commit b7c276b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
19 changes: 16 additions & 3 deletions _config.redefine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ colors:
# SITE CUSTOMIZATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> start
# Docs: https://redefine-docs.ohevan.com/basic/global
global:
# Custom fonts
# Custom global fonts
fonts:
# Chinese fonts
chinese:
Expand All @@ -58,6 +58,11 @@ global:
enable: false # Whether to enable custom english fonts
family: # Font family
url: # Font URL to CSS file
# Custom title fonts (navbar, sidebar)
title:
enable: false # Whether to enable custom title fonts
family: # Font family
url: # Font URL to CSS file
# Content max width
content_max_width: 1000px
# Sidebar width
Expand All @@ -80,7 +85,9 @@ global:
# Whether to enable single page experience (using swup). See https://swup.js.org/. similar to pjax
single_page: true
# Whether to enable Preloader.
preloader: true
preloader:
enable: true
custom_message: # Custom message. If empty, the site title will be displayed
# Whether to enable open graph
open_graph: true
# Google Analytics
Expand Down Expand Up @@ -122,6 +129,7 @@ home_banner:
text: ['Pwn everything!', 'Make C Great Again!', 'I just popped a shell.', 'Privilege escalation achieved.', 'ASLR bypassed.', 'FSOP chain deployed.'] # subtitle text, array
hitokoto: # 一言配置
enable: false # Whether to enable hitokoto
show_author: false # Whether to show author
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
typing_speed: 100 # Typing speed (ms)
backing_speed: 80 # Backing speed (ms)
Expand Down Expand Up @@ -264,6 +272,8 @@ home:
# ...... # you can add more
# Article date format
article_date_format: auto # auto, relative, YYYY-MM-DD, YYYY-MM-DD HH:mm:ss etc.
# Article excerpt length
excerpt_length: 200 # Max length of article excerpt
# Article categories visibility
categories:
enable: true # Whether to enable
Expand Down Expand Up @@ -308,6 +318,9 @@ articles:
code_block:
copy: true # Whether to enable code block copy button
style: simple # mac | simple
highlight_theme: # Color scheme for highlightjs code highlighting. For preview, see https://highlightjs.org/examples
light: atom-one-light # light mode theme, support: github, atom-one-light, default
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
font: # Custom font
enable: true # Whether to enable
family: 'JetBrains Mono' # Font family
Expand Down Expand Up @@ -469,7 +482,7 @@ cdn:
# Whether to enable CDN
enable: false
# CDN Provider
provider: npmmirror # npmmirror, zstatic, sustech, staticfile, bootcdn, cdnjs, jsdelivr, unpkg, custom
provider: npmmirror # npmmirror, zstatic, sustech, cdnjs, jsdelivr, unpkg, custom
# Custom CDN URL
# format example: https://cdn.custom.com/hexo-theme-redefine/${version}/source/${path}
# The ${path} must leads to the root of the "source" folder of the theme
Expand Down
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"hexo-renderer-marked": "^6.3.0",
"hexo-renderer-stylus": "^3.0.1",
"hexo-server": "^3.0.0",
"hexo-theme-redefine": "^2.7.0"
"hexo-theme-redefine": "^2.7.1"
}
}

0 comments on commit b7c276b

Please sign in to comment.