Hexo小标题旋转风车设置
前言
如果不喜欢Butterfly主题自带的曲别针图标,可以换一种口味。(比如我现在使用的旋转风车)
操作
找到主题配置文件_config.butterfly.yml
-
把
beautify的title-prefix-icon处修改为:'\f863'(如果没有开启图标功能则需要将
enable设置为true)1
2
3beautify:
enable: true
title-prefix-icon: '\f863' -
在
inject的head处引入以下文件:1
2
3inject:
head:
- "<style>#article-container.post-content h1:before, h2:before, h3:before, h4:before, h5:before, h6:before { -webkit-animation: avatar_turn_around 1s linear infinite; -moz-animation: avatar_turn_around 1s linear infinite; -o-animation: avatar_turn_around 1s linear infinite; -ms-animation: avatar_turn_around 1s linear infinite; animation: avatar_turn_around 1s linear infinite; }</style>"
重新部署,启动,就可以看到效果啦。
结尾
慢慢的博客就不一样了。
相关文章