主题安装命令:
git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus -b <version number> --depth 1
git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus --depth 1
你可以省略-b <version number>
来获取Icarus的最新开发版本。 如果你想同时下载Git仓库的完整提交历史,请同时省略--depth 1
。 另外,你也可以使用下面的命令将Icarus安装为Git子模块(submodule):
git submodule add https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
依赖安装,根据错误提示安装依赖即可,例如:
npm install --save bulma-stylus@0.8.0 hexo-renderer-inferno@^0.1.3
修改主题
hexo config theme icarus
文章front-matter设置
---
toc: true #启用文章目录
cover: #文章封面&缩略图路径
excerpt: #文章摘要,也可以在文章内容中添加 <!-- more --> 标签为断点
article:
highlight:
theme: atom-one-dark #文章代码高亮主题
---