既然说到了技术优化,那就不得不说一下我做啥了。

首先是对 _config.butterfly.yml 的修改,因为我的网站标题都特别长,经常会在导航栏的显示那里出问题,所以我关闭了导航栏标题,现在只显示站点了:

1
2
3
4
5
6
7
8
@@ -13,7 +13,7 @@ nav:
# Navigation bar logo image
logo:
display_title: true
- display_post_title: true
+ display_post_title: false
# Whether to fix navigation bar
fixed: false

我之前的右边侧边栏真的很反人类,我不喜欢,所以我改成了左边:

1
2
3
4
5
6
7
8
9
@@ -294,7 +294,7 @@ aside:
button: true
mobile: true
# Position: left / right
- position: right
+ position: left
display:
archive: true
tag: true

因为我计划是使用自动适配明暗,所以我打开了自动适配:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@@ -398,12 +398,12 @@ readmode: true
darkmode:
enable: true
# Toggle Button to switch dark/light mode
- button: true
+ button: false
# Switch dark/light mode automatically
# autoChangeMode: 1 Following System Settings, if the system doesn't support dark mode, it will switch dark mode between 6 pm to 6 am
# autoChangeMode: 2 Switch dark mode between 6 pm to 6 am
# autoChangeMode: false
- autoChangeMode: false
+ autoChangeMode: 1
# Set the light mode time. The value is between 0 and 24. If not set, the default value is 6 and 18
start:
end:

我居然没发现我的网站亮色评论区主题写错了:

1
2
3
4
5
6
7
8
9
@@ -649,7 +649,7 @@ giscus:
repo: xiashuangjv123/xiashuangjv123.github.io
repo_id: R_kgDOQ-M8hw
category_id: DIC_kwDOQ-M8h84C1O8X
- light_theme: noboder_light
+ light_theme: noborder_light
dark_theme: noborder_dark
js:
option:

网站的颜色我不喜欢,不够统一,所以改成和网站背景图统一颜色了:

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
@@ -772,23 +772,23 @@ site_verification:
# Theme color for customize
# Notice: color value must in double quotes like "#000" or may cause error!

-# theme_color:
-# enable: true
-# main: "#49B1F5"
-# paginator: "#00c4b6"
-# button_hover: "#FF7242"
-# text_selection: "#00c4b6"
+theme_color:
+ enable: true
+ main: "#58757d"
+ paginator: "#58757d"
+ button_hover: "#69838a"
+ text_selection: "#58757d"
# link_color: "#99a9bf"
# meta_color: "#858585"
# hr_color: "#A4D8FA"
# code_foreground: "#F47466"
# code_background: "rgba(27, 31, 35, .05)"
-# toc_color: "#00c4b6"
-# blockquote_padding_color: "#49b1f5"
-# blockquote_background_color: "#49b1f5"
-# scrollbar_color: "#49b1f5"
-# meta_theme_color_light: "ffffff"
-# meta_theme_color_dark: "#0d0d0d"
+ toc_color: "#58757d"
+ blockquote_padding_color: "#58757d"
+ blockquote_background_color: "#58757d"
+ scrollbar_color: "#58757d"
+ meta_theme_color_light: "#cdd6d8"
+ meta_theme_color_dark: "#1a2326"

# The user interface setting of category and tag page
# Choose: index - same as Homepage UI / default - same as archives UI

大多数人都是亮色,默认明暗已经无所谓了,还不如改成亮色:

1
2
3
4
5
6
7
8
9
@@ -821,7 +821,7 @@ preloader:
enter_transitions: true

# Default display mode - light (default) / dark
-display_mode: dark
+display_mode: light

# Configuration for beautifying the content of the article
beautify:

第二步是修改 _config.yml,因为我一直没发现我把网站地址写错了:

1
2
3
4
5
6
7
8
9
@@ -13,7 +13,7 @@ timezone: Asia/Shanghai

# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
-url: https://xiaoshuangjv123.github.io
+url: https://xiashuangjv123.github.io
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:

改了那么多,算是更新好了,新网站真好看:

这篇就到这里了。