新建文章

1
hugo new post/blog-name.md

运行hugo

1
hugo server --watch --buildDrafts

部署到GitHub Pages

1
2
hugo -D
hugo --theme=hyde --baseUrl="http://binbean.github.io/"
1
2
3
4
5
6
cd public
git init
git remote add origin https://github.com/binbean/binbean.github.io.git
git add -A
git commit -m "first commit"
git push -u origin master