操作

1.在 /themes/butterfly/source/css路径下创建一个mouse.css文件,在文件中添加如下代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
body{
cursor: url(图片的地址),
default;
}
img{
cursor: url(图片的地址),
default;
}
a{
cursor: url(图片的地址),
default;
}
div{
cursor: url(图片的地址),
default;
}

总之你想让哪个标签改变光标,就把那个标签加上这段代码就行了。

2.打开站点主题配置文件_config.butterfly.yml,找到inject,在head处直接引入该文件:

1
2
3
inject:
head:
- <link rel="stylesheet" href="/css/mouse.css">

完事

后续

还是有一点小地方无法修改,但无伤大雅,所以就先这样吧。