fluid 主题配置

Hexo 安装 使用

下载 Hexo

1
npm install -g hexo-cli

创建博客

1
hexo init blog

创建文章

1
hexo new text

创建页面

1
hexo new page test

预览和部署网站

预览网站

1
hexo cl && hexo g && hexo s

部署网站

1
npm install hexo-deployer-git

在根目录下_config.yml 配置:

1
2
3
4
deploy:
type: 'git'
repo: 'git@github.com:your name/your repositories' # 仓库地址,可选择 ssh 和 https 两种
branch: 'main' # 分支

hexo clean && hexo g -d

fluid 主题安装

终端进入 blog 的根目录

1
npm install --save hexo-theme-fluid

把 hexo-theme-fluid 目录的_config.yml 复制到 blog 根目录的_config.fluid.yml 文件

更新 fluid 主题

1
npm update --save hexo-theme-fluid