前言

在手机上习惯用深色,所以给blog也添加一个调整开关,由于最新的主题包括夜间文件,所以我们只要添加开关就行了,如果是新版stellar主题,闭眼如即可·

上手

先把这个官方文档的页脚美化加入blog

plaintext
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
footer:
social:
footer:
social:
github:
icon: '<img src="/assets/placeholder/social/08a41b181ce68.svg"/>'
url: https://
music:
icon: '<img src="/assets/placeholder/social/3845874.svg"/>'
url: https://
unsplash:
icon: '<img src="/assets/placeholder/social/3616429.svg"/>'
url: https://
comments:
icon: '<img src="/assets/placeholder/social/942ebbf1a4b91.svg"/>'
url: https://
theme:
icon: default:theme
onclick: 'switchTheme()'

就完事了!

如果 but

如果你用的是stellar18可以借鉴{https://blog.thatcoder.cn/Stellar%E5%8F%AF%E6%8E%A7%E5%A4%9C%E9%97%B4%E6%A8%A1%E5%BC%8F/}