# 打包。LoveIt 是主题
hugo -t LoveIt 
# if using a theme, replace with `hugo -t <YOURTHEME>`

# 进入打包文件夹
cd public

# Add changes to git.

git init
git add -A

# Commit changes.
# msg="building site `date`"
git commit -m "$msg"

# 推送到github
# user.github.io 只能使用 master分支
git remote add origin <https://github.com/xkerwin/xkerwin.github.io.git>

git push -u origin master

# 回到原文件夹
cd ..