Hexo-Butterfly美化教程-[2]Butterfly主题安装
拉取主题代码
1 | git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly |
配置主题应用
将blog
根目录下的_config.yml
文件中的主题配置由landscape
改为butterfly
。
1 | theme: butterfly |
将blog\themes\butterfly
目录下的_config.yml
文件复制一份到blog
根目录下,并将复制的文件改名为_config.butterfly.yml
。
安装插件
1 | npm install hexo-renderer-pug hexo-renderer-stylus --save |
测试验证
1 | #本地测试 |
在浏览器中访问 http://localhost:4000/
,查看Butterfly主题安装是否成功。
博客搭建系列文章
- Hexo-Butterfly美化教程-[1]基础环境
- Hexo-Butterfly美化教程-[2]Butterfly主题安装
- Hexo-Butterfly美化教程-[3]建主要页面
- Hexo-Butterfly美化教程-[4]修改配置文件
- Hexo-Butterfly美化教程-[5]安装常用插件
- Hexo-Butterfly美化教程-[6]开启博客评论
- Hexo-Butterfly美化教程-[7]功能魔改(源码方式)
- Hexo-Butterfly美化教程-[8]随鼠标变幻的动态粒子线条背景
- Hexo-Butterfly美化教程-[9]繁沙
- 在Github上使用OsmosFeed搭建在线RSS阅读器(无需服务器)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 云野阁!
评论
GitalkGiscus