ZXS66 / blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the repository for managing my blog in GitHub.com

Create a new post

npm run new 'My New Post'

More info: Writing

Generate static files

$ npm run build

More info about hexo generate

push to GitHub repository

$ npm run deploy

More info about hexo deploy

deploy to GitHub Pages

The latest code will be pushed to GitHub Pages automatically when you submit new commit to the GitHub repository.

best practice

  1. hexo draft "you new post name"

    draft a post

  2. hexo publish "your new post name"

    move a draft content from source/_drafts to source/_posts folder

  3. npm run go

    push the change to server, this is a combo commands for hexo generate and hexo deploy

About


Languages

Language:Stylus 40.0%Language:JavaScript 35.1%Language:EJS 21.9%Language:HTML 2.9%