1.下载喜欢的主题
hugo new site myblog
cd myblog/
git clone https://github.com/vaga/hugo-theme-m10c.git themes/m10c
hugo server -t m10c --buildDrafts
2. 开始部署
先在GitHub创建一个名为"wbt.github.io"的仓库。
hugo --theme=m10c --baseURL="https://wbt.github.io" --buildDrafts
cd public
使用git推到GitHub
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/wbt/wbt.github.io.git
git remote -v
git remote rm origin #如果提示已存在,可使用这个命令删除
git pull --rebase origin master
git push origin master