请注意 我所用的主题:Next
不同主题, 操作的参数略有不同 ,大同小异
Hexo改字体
打开
hexo\themes\hexo-theme-next\_config.yml
找到font字段
- 全局字体:定义的字体将在全站范围使用
- 标题字体:文章内标题的字体(h1, h2, h3, h4, h5, h6)
- 文章字体:文章所使用的字体
- Logo字体:Logo 所使用的字体
- 代码字体: 代码块所使用的字体
1 | font: |
Hexo改透明度
打开
\themes\next\source\css\_schemes\Pisces\_layout.styl
找到并开始修改.content-wrap
字段的值,添加opacity
属性,此为主题内容板块
打开\themes\next\source\css\_schemes\Pisces\_layout.styl
找到并开始修改.sidebar
字段的内容,添加opacity
属性,此为主题侧边栏板块
Hexo增加动态背景
- 打开
hexo\themes\hexo-theme-next\_config.yml
- 找到
canvas
相关的字段,在你想要的动态背景下改为true
,如下1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24# Canvas-nest
# Dependencies: https://github.com/theme-next/theme-next-canvas-nest
canvas_nest: true
# JavaScript 3D library.
#Dependencies: https://github.com/theme-next/theme-next-three
# three_waves
three_waves: false
# canvas_lines
canvas_lines: false
# canvas_sphere
canvas_sphere: false
# Only fit scheme Pisces
# Dependencies: https://github.com/theme-next/theme-next-canvas-ribbon
# Canvas-ribbon
# size: The width of the ribbon.
# alpha: The transparency of the ribbon.
# zIndex: The display level of the ribbon.
canvas_ribbon:
enable: false
size: 300
alpha: 0.6
zIndex: -1
Hexo更改网页图标Favcion
- 在网上选好你中意的图片
将图片转成
.icon
的格式Tip: .icon格式转换网址点这里
Tip: 超多好看可爱的图标在这里将新图片重命名为
favicon.ico
- 将
favicon.ico
复制在hexo\source
目录下 - 将
favicon.ico
复制在hexo\themes\hexo-theme-next\source
目录下 - 打开
hexo\themes\hexo-theme-next\_config.yml
找到Favicon的参数,修改如下:
1
2
3
4
5
6
7favicon:
small: /favicon.ico
medium: /favicon.ico
apple_touch_icon: /favicon.ico
safari_pinned_tab: /favicon.ico
android_manifest: /favicon.ico
ms_browserconfig: /favicon.ico打开
hexo\_config.yml
- 在文档最后添加字段,如下
1
favicon: /favicon.ico