如何添加 Hexo 主题
使用
方式一
$ git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia
方式二: submodule(推荐)
$ git submodule add https://github.com/litten/hexo-theme-yilia.git themes/yilia
保持主题更新
- 进入要更新的主题目录,一般在项目目录的
themes/<theme_name>
cd themes/landscape
git pull origin master
- 回到Hexo根目录,使用git提交主题更新
cd ../..
git add themes/yilia
git commit -m "Update theme"