51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

hexo小标题旋转风车

前言 {#前言}

如果不喜欢Butterfly主题自带的曲别针图标,可以换一种风格。(比如我现在使用的旋转风车

操作 {#操作}

打开主题配置文件_config.butterfly.yml

beautifytitle-prefix-icon选项设置为'\f863'

(如果没有开启图标功能则需要将enable设置为true)

|-----------------------------------------------------------| | beautify: enable: true title-prefix-icon: '\f863' |

injecthead引入:

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | inject: 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> |

重新部署,执行 hexo cl,hexo g,hexo s 三连即可看到效果。

赞(3)
未经允许不得转载:工具盒子 » hexo小标题旋转风车