Skip to content

Commit 6c92ac7

Browse files
committed
feat: update hexo to 7.3.0
1 parent 74729c5 commit 6c92ac7

File tree

7 files changed

+544
-262
lines changed

7 files changed

+544
-262
lines changed

.gitmodules

-3
This file was deleted.

_config.next.yml

+28-21
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Theme Core Configuration Settings
99
# See: https://theme-next.js.org/docs/theme-settings/
1010
# ---------------------------------------------------------------
11+
# Default: https://github.com/next-theme/hexo-theme-next/blob/master/_config.yml
1112

1213
# Allow to cache content generation.
1314
cache:
@@ -123,12 +124,15 @@ sidebar:
123124
# position: left
124125
position: right
125126

126-
# Manual define the sidebar width. If commented, will be default for:
127-
# Muse | Mist: 320
128-
# Pisces | Gemini: 240
129-
#width: 300
127+
# Sidebar width.
128+
# Applicable to Muse | Mist and mobile of Pisces | Gemini.
129+
width_expanded: 320
130+
# Applicable to desktop of Pisces | Gemini.
131+
width_dual_column: 240
130132

131-
# Sidebar Display (only for Muse | Mist), available values:
133+
# Sidebar display.
134+
# Applicable to Muse | Mist and mobile of Pisces | Gemini.
135+
# Available values:
132136
# - post expand on posts automatically. Default.
133137
# - always expand for all pages automatically.
134138
# - hide expand only when click on the sidebar toggle icon.
@@ -217,20 +221,21 @@ footer:
217221
color: "#ff0000"
218222

219223
# If not defined, `author` from Hexo `_config.yml` will be used.
224+
# Set to `false` to disable the copyright statement.
220225
copyright:
221226

222227
# Powered by Hexo & NexT
223228
powered: true
224229

225-
# Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn
230+
# Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, https://beian.mps.gov.cn
226231
beian:
227232
enable: false
228233
icp:
229234
# The digit in the num of gongan beian.
230235
gongan_id:
231236
# The full num of gongan beian.
232237
gongan_num:
233-
# The icon for gongan beian. See: http://www.beian.gov.cn/portal/download
238+
# The icon for gongan beian. Login and See: https://beian.mps.gov.cn/web/business/businessHome/website
234239
gongan_icon_url:
235240

236241

@@ -239,7 +244,7 @@ footer:
239244
# See: https://theme-next.js.org/docs/theme-settings/posts
240245
# ---------------------------------------------------------------
241246

242-
# Automatically excerpt description in homepage as preamble text.
247+
# Use `description` in front-matter to specify post excerpt.
243248
excerpt_description: true
244249

245250
# Read more button
@@ -374,6 +379,10 @@ codeblock:
374379
enable: false
375380
# Available values: default | flat | mac
376381
style:
382+
# Fold code block
383+
fold:
384+
enable: false
385+
height: 500
377386

378387
back2top:
379388
enable: true
@@ -620,6 +629,7 @@ quicklink:
620629
motion:
621630
enable: true
622631
async: false
632+
duration: 200
623633
transition:
624634
# All available transition variants: https://theme-next.js.org/animate/
625635
menu_item: fadeInDown
@@ -744,9 +754,12 @@ isso: # <data_isso>
744754
# See: https://theme-next.js.org/docs/third-party-services/post-widgets
745755
# ---------------------------------------------------------------
746756

747-
# AddThis Share. See: https://www.addthis.com
748-
# Go to https://www.addthis.com/dashboard to customize your tools.
749-
add_this_id:
757+
# AddToAny Share. See: https://www.addtoany.com
758+
addtoany:
759+
enable: false
760+
buttons:
761+
- facebook
762+
- twitter
750763

751764

752765
# ---------------------------------------------------------------
@@ -761,6 +774,8 @@ google_analytics:
761774
# By default, NexT will load an external gtag.js script on your site.
762775
# If you only need the pageview feature, set the following option to true to get a better performance.
763776
only_pageview: false
777+
# only needed if you are using `only_pageview` mode, https://developers.google.com/analytics/devguides/collection/protocol/ga4
778+
measure_protocol_api_secret:
764779

765780
# Baidu Analytics
766781
# See: https://tongji.baidu.com
@@ -791,6 +806,7 @@ umami:
791806
enable: false
792807
script_url: # https://umami.example.com/script.js
793808
website_id: # <your website id>
809+
host_url: # <your umami site url>
794810

795811
# Plausible Analytics
796812
# See: https://plausible.io/
@@ -849,9 +865,6 @@ algolia_search:
849865
# Dependencies: https://github.com/next-theme/hexo-generator-searchdb
850866
local_search:
851867
enable: true
852-
# If auto, trigger search by changing input.
853-
# If manual, trigger search by pressing enter key or search button.
854-
trigger: auto
855868
# Show top n results per article, show all results by setting to -1
856869
top_n_per_article: 1
857870
# Unescape html strings to the readable one.
@@ -869,7 +882,7 @@ local_search:
869882
# Firstly, you need to enable and configure the chat service.
870883
chat:
871884
enable: false
872-
icon: fa fa-comment # Icon name in Font Awesome, set false to disable icon.
885+
icon: fa fa-comment # Icon name in Font Awesome, set to `false` to disable icon.
873886

874887
# Chatra is a functional, easy to use piece of chat software for websites.
875888
# For more information: https://chatra.com
@@ -887,12 +900,6 @@ tidio:
887900
enable: false
888901
key: # Public Key, get it from dashboard. See: https://www.tidio.com/panel/settings/developer
889902

890-
# Gitter is a chat and networking platform.
891-
# For more information: https://gitter.im
892-
gitter:
893-
enable: false
894-
room:
895-
896903

897904
# ---------------------------------------------------------------
898905
# CDN Settings

_config.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
# Hexo Configuration
22
## Docs: https://hexo.io/docs/configuration.html
33
## Source: https://github.com/hexojs/hexo/
4+
## Default: https://github.com/hexojs/hexo-starter
45

56
# Site
67
title: dd's site \#
78
subtitle:
89
description: Don't be evil.
10+
keywords:
911
author: Deng
10-
avatar: /images/avatar.jpg
1112
language:
1213
timezone:
1314

1415
# URL
1516
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
1617
url: https://csjd.github.io
17-
root: /
1818
permalink: posts/:title/
1919
permalink_defaults:
2020
pretty_urls:
2121
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
2222
trailing_html: true # Set to false to remove trailing '.html' from permalinks
2323

24-
2524
# Directory
2625
source_dir: source
2726
public_dir: public
@@ -45,15 +44,14 @@ render_drafts: false
4544
post_asset_folder: false
4645
relative_link: false
4746
future: true
47+
syntax_highlighter: highlight.js
4848
highlight:
49-
enable: true
5049
line_number: true
5150
auto_detect: false
5251
tab_replace: ''
5352
wrap: true
5453
hljs: false
5554
prismjs:
56-
enable: false
5755
preprocess: true
5856
line_number: true
5957
tab_replace: ''
@@ -90,6 +88,12 @@ updated_option: 'mtime'
9088
per_page: 30
9189
pagination_dir: page
9290

91+
# Include / Exclude file(s)
92+
## include:/exclude: options only apply to the 'source/' folder
93+
include:
94+
exclude:
95+
ignore:
96+
9397
# Extensions
9498
## Plugins: https://hexo.io/plugins/
9599
## Themes: https://hexo.io/themes/
@@ -98,9 +102,7 @@ theme: next
98102
# Deployment
99103
## Docs: https://hexo.io/docs/deployment.html
100104
deploy:
101-
type: git
102-
repository: [email protected]:csJd/csJd.github.io.git
103-
branch: master
105+
type: ''
104106

105107
# Social links
106108
# social:

0 commit comments

Comments
 (0)