source for https://blog.comicat.me
theme use comicat-hu/hexo-theme-cafe (forked from giscafer/hexo-theme-cafe)
git clone -b source https://github.com/comicat-hu/blog
git submodule update --init --recursive
npm install hexo -g
npm install
hexo g
(generate files in public folder)hexo s
(run local server on port 4000, stop by ctrl+c)hexo s &
(run local server in background, stop bykill
process id)hexo d
(deploy project follow _config.yml deploy setting)hexo clean
(clean all files in public folder, recommand clean after modify any framework and theme file)
hexo new "Post Title"
(create new post)- set categories and tags
- use
<!--more-->
to set post preview - use
{% asset_img Picture_Name Picture_ALT %}
to set a picture in post
git push origin source
: build and deploy by travis-ci, keep deploy commit history.
git submodule foreach --recursive git pull origin master