嘘~ 正在从服务器偷取页面 . . .

Hexo搭建静态博客(三)——主题更换


Hexo静态博客已经搭建好了,链接页面有了,主题不好看怎么换呢?本文记录主题更换相关内容。

选择一个自己喜欢的 Hexo 主题站:https://hexo.io/themes/
极简主题推荐:
hexo-theme-polarbear

hexo-theme-polarbear (gd4Ark的扩展版) (下载后执行安装npm install)

hexo-theme-ayer

hexo-theme-sky

hexo-theme-xoxo

hexo-theme-xoxo-plus

漂亮主题推荐:

hexo-theme-matery

hexo-theme-fluid | butterfly主题文档

hexo-theme-butterfly | butterfly主题文档

hexo-theme-sakura | sakura主题文档

其中极简主题有些没有search功能,如需要自己安装search插件,参考Hexo搭建静态博客(四)——插件安装
极简主题中最开始比较喜欢 hexo-theme-polarbear,对扩展版进行补充搜索功能,顺便学习一些hexo自定义插件安装的东西。

漂亮主题,现在使用的是 hexo-theme-matery 如果你喜欢,本文底部还有一些相关文章,如果能帮你解决问题就好了,更多问题可以到群里(971887688)提问,或者联系我。

如安装主题hexo-theme-xoxo-matery,

1.下载主题

cd themes
git clone https://github.com/small-rose/hexo-theme-matery.git

2.修改配置

修改全局配置根目录_config.yml, 注意theme的值要和theme目录的主题的文件夹名字一致

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
# landscape
theme: hexo-theme-matery

3.启动预览

hexo g & hexo s

浏览器访问:
大功告成。

如果对该主题的其他设置请参考主题用法,到主题目录下修改主题的配置文件_config.yml

如有问题请参考本系列:Hexo搭建静态博客(五)——踩坑问题


相关文章




版权声明: 本博客所有文章除特別声明外,均采用 CC BY-SA 4.0 许可协议。转载请注明来源 Small-Rose / 张小菜 !
评论
  目录