type
status
date
slug
summary
tags
category
icon
password
如何自定义侧边栏
在hexo博客目录中的
/source/_data创建一个名为widget.yml的文件,如果没有_data文件夹,自己创建一个。widget.yml文件内容如下:hexo会根据
widget.yml内容自动生成代码。如何添加自定义css、js、img文件
在本地博客根目录的
source文件夹里创建css``js``img文件夹(/source/css /source/js /source/img),里面即可存放.css .js img文件。随后,在主题配置文件
_config.butterfly.yml里面的inject处引入刚才编写的css js文件。至于
img文件,直接就在需要插入图片的地方引入/img/***.png即可,但一般建议使用图床。一般而言,css文件在head引入,js文件在bottom里引入,有的js要求在head引入,不然无法生效。
- Author:jianerssr
- URL:https://www.heyjian.cn/hobby/286e3192-c665-80ec-9650-fe38be29dbe5
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Relate Posts








