/sherllochen.github.io

Personal blog for life and technology logging.

Primary LanguageStylus

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.

Get ready to write.

  1. Build docker image. Skip if it has been build.
docker build -t sherllo/hexo .
  1. Run container.
docker run -v /host_path:/opt/hexo -p 4000:4000 -it sherllo/hexo
  1. Write something.
hexo new [post|page|draft] <title>

Deploy

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

Other commands

  1. Init blog.
hexo init blog_name
  1. Run preview server, local preview will be exposed on 4000 port.(http://localhost:4000)
hexo server

Usefull resources