https://github.com/sherllochen/sherllochen.github.io.git Source code of this blog is in hexo-source(also the default branch). Static pages will be generated and deploy to gh-pages branch.
- Build docker image. Skip if it has been build.
docker build -t sherllo/hexo .
- Run container.
docker run -v /host_path:/opt/hexo -p 4000:4000 -it sherllo/hexo
- Write something.
hexo new [post|page|draft] <title>
Base setup document for deploying to github pages is here. Once new commit puth to hexo-souce, travis will deploy the update to github pages automaticly.
git push origin hexo-source
- Init blog.
hexo init blog_name
- Run preview server, local preview will be exposed on 4000 port.(http://localhost:4000)
hexo server
- (Next theme docs)[http://theme-next.iissnan.com/]