source for https://blog.comicat.me
theme use comicat-hu/hexo-theme-cafe (forked from giscafer/hexo-theme-cafe)
git clone -b source git@github.com:comicat-hu/blog.gitcd blog && git submodule update --init --recursive
npm install hexo -gnpm 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 bykillprocess id)("hexo d" used force push cause deploy commit history missing)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 github-action keep deploy commit history.
git submodule foreach --recursive git pull origin master