Fluid 是基于 Hexo 的一款 Material Design 风格的主题,由 Fluid-dev 负责开发与维护,本文记录主题安装使用方法。
npm install --save hexo-theme-fluid
$ 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
_config.fluid.yml
空文件,将官方配置文件内容复制进去。下载 最新 release 版本解压到 themes 目录,并将解压出的文件夹重命名为 fluid
。
如下修改 Hexo 博客目录中的 _config.yml
:
theme: fluid # 指定主题
language: zh-CN # 指定语言,会影响主题显示的语言,按需修改
hexo clean
hexo g
hexo s
我是next主题转过来的,自带一些信息,不过正常情况下也可以正常进入主题了。