本文最后更新于:2024年1月14日 晚上

Fluid 是基于 Hexo 的一款 Material Design 风格的主题,由 Fluid-dev 负责开发与维护,本文记录主题安装使用方法。

预备环境

  • gitbash
  • node.js
  • Hexo 5.0.0 以上

安装最新版本 fluid

方式一

  1. 推荐通过 npm 直接安装,进入博客目录执行命令:
1
npm install --save hexo-theme-fluid
1
2
3
4
5
6
7
8
9
10
$ npm install --save hexo-theme-fluid
+ hexo-theme-fluid@1.8.11
added 4 packages from 9 contributors and audited 788 packages in 17.402s

13 packages are looking for funding
run `npm fund` for details

found 51 vulnerabilities (11 low, 29 moderate, 11 high)
run `npm audit fix` to fix them, or `npm audit` for details

  1. 在博客目录下创建 _config.fluid.yml 空文件,将官方配置文件内容复制进去。

方式二

下载 最新 release 版本解压到 themes 目录,并将解压出的文件夹重命名为 fluid

指定主题

如下修改 Hexo 博客目录中的 _config.yml

1
2
3
theme: fluid  # 指定主题

language: zh-CN # 指定语言,会影响主题显示的语言,按需修改
  • 此时运行hexo系列命令
1
2
3
hexo clean
hexo g
hexo s

我是next主题转过来的,自带一些信息,不过正常情况下也可以正常进入主题了。

参考资料



文章链接:
https://www.zywvvd.com/notes/hexo/theme/fluid/fluid-install/fluid-install/


“觉得不错的话,给点打赏吧 ୧(๑•̀⌄•́๑)૭”

微信二维码

微信支付

支付宝二维码

支付宝支付

Fluid -1- 主题安装
https://www.zywvvd.com/notes/hexo/theme/fluid/fluid-install/fluid-install/
作者
Yiwei Zhang
发布于
2021年8月3日
许可协议