-
Notifications
You must be signed in to change notification settings - Fork 81
快速使用
arkerny edited this page Jul 17, 2022
·
3 revisions
- Node.js
16.13.x
以上 -
最新版 Hexo
Hexo
6.0.0
以上; hexo-cli4.3.0
以上; - 中国大陆用户推荐使用
cnpm
安装依赖包,参考 中国 NPM 镜像。
如果你还没有 Hexo 博客,请按照Hexo 官方文档进行安装、建站。
下载最新 release 版本解压到 themes
目录,并将解压出的文件夹重命名为 arknights
。
git clone https://github.com/Yue-plus/hexo-theme-arknights.git themes/arknights
然后在博客目录下创建 _config.arknights.yml
即主题的配置文件,将主题的 _config.yml
内容复制进去。
主题的配置文件可参照中文注释修改。
建议参考:
对 Hexo 博客目录中的 _config.yml
进行如下修改:
theme: arknights # 指定主题
highlight: # 开启代码高亮
hljs: true
建议参考:
npm 用户:
npm install hexo-server hexo-browsersync hexo-renderer-pug --save
yarn 用户:
yarn add hexo-server hexo-browsersync hexo-renderer-pug