comicat-hu / blog

comicat's blog

Home Page:https://blog.comicat.me?utm_source=github&utm_medium=repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blog

Build Status

source for https://blog.comicat.me

theme use comicat-hu/hexo-theme-cafe (forked from giscafer/hexo-theme-cafe)

Getting Starting

clone Project

  • git clone -b source https://github.com/comicat-hu/blog
  • git submodule update --init --recursive

install dependencies

  • npm install hexo -g
  • npm install

basic hexo command

  • 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 by kill process id)
  • hexo d (deploy project follow _config.yml deploy setting) ("hexo d" used force push cause deploy commit history missing)
  • hexo clean (clean all files in public folder, recommand clean after modify any framework and theme file)

write a post

  • 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

deploy to github-pages

  • git push origin source: build and deploy by travis-ci, keep deploy commit history.

update theme submodule

  • git submodule foreach --recursive git pull origin master

About

comicat's blog

https://blog.comicat.me?utm_source=github&utm_medium=repo


Languages

Language:Shell 100.0%