配置 fluid 主题

个人使用的是 fluid 主题,其他主题可以前往 hexo 官网查看

Hexo 主题:https://hexo.io/themes/

fluid 官网:https://hexo.fluid-dev.com/docs/

安装

使用 npm

1
npm install --save hexo-theme-fluid

使用 yarn

1
yarn add hexo-theme-fluid

配置

在博客项目根目录下创建文件一个名为 _config.fluid.yml 的文件

node_modules 里面 hexo-theme-fluid 文件夹里面的 _config.yml 的内容复制到新建的_ config.fluid.yml 文件中


修改根目录下的 _config.yml,将主题设置为 fluid

1
2
# Extensions
theme: fluid

部署

1
2
3
4
5
6
7
8
# 清除缓存
hexo clean

# 生成静态资源
hexo generate

# 部署
hexo deploy