- nodejs
- git
- hexo
- yarn/npm
yarn init blog-name
git clone git@github.com:webeautiful/hexo-blog-source.git
yarn install
yarn add hexo-deployer-git # hexo deploy失败时,安装此插件可解决
- CNAME文件放在
source/
目录下 _config.yml
配置, 如:url: http://www.etuai.com
- 创建
themes
目录 - 安装主题
git clone https://github.com/iissnan/hexo-theme-next.git themes/next
- 主题目录, 如:
themes/next
_config.yml
配置, 如:theme: next
$ hexo s --debug
hexo new [layout] <title>
deploy:
type: git
repo: git@github.com:webeautiful/webeautiful.github.io.git
branch: master
hexo clean
hexo g
hexo deploy