0%

如何添加 Hexo 主题

使用

方式一

1
$ git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia

方式二: submodule(推荐)

1
2
$ git submodule add https://github.com/litten/hexo-theme-yilia.git themes/yilia

保持主题更新

  1. 进入要更新的主题目录,一般在项目目录的 themes/<theme_name>
1
2
3
cd themes/landscape
git pull origin master

  1. 回到Hexo根目录,使用git提交主题更新
1
2
3
4
cd ../..
git add themes/yilia
git commit -m "Update theme"