Procedure
- initiate a repo in github
- hexo init
- install dependency
- set travis to auto deploy
install hexo
To install hexo, first we should install nodejs. On macOS, we could install npm with brew brew install node
then we should install hexo.12345npm install -g hexo-clihexo init blogcd blognpm installnpm install hexo-deployer-git --save
choose a theme, here I recommend you take a look at hexo-next-theme, override necessary configuration in _config.yml.1git submodule add https://github.com/iissnan/hexo-theme-next.git themes/next
Change theme config
Push to GitHub
- Create a github repo
- git add origin
git remote add origin THE_URL_OF_GITHUB_REPO
- git push
git push -u origin master
Using travis to auto deploy
- create a github token
- encrypt your token in travis
- write your own .travis.yml
solve conflict of render engine between hexo and mathjax
|
|
create a new post
|
|