搭建/部署
- 下载hugo.exe https://github.com/gohugoio/hugo/releases
- 将hugo.exe 放到常用目录,建议直接放到和个人主页同目录
- 到当hugo.exe目录执行
hugo new site .\fanlyu
- 创建新页面
hugo new about.md
- 安装主题,选一个主题
git clone [https://github.com/spf13/hyde.git](https://github.com/spf13/hyde.git)
- 运行hugo
cd themeshugo server --theme=hyde --buildDraftscd ..
- 部署
- 到 github 新建一个fanlyu.github.io 的repository
hugo --theme=hyde --baseUrl="http://fanlyu.github.io/"- 执行
$ cd public$ git init$ git remote add origin [https://github.com/coderzh/coderzh.github.io.git](https://github.com/coderzh/coderzh.github.io.git)$ git add -A$ git commit -m "first commit"$ git push -u origin master
更新
每次修改
$ hugo --theme=hyde --baseUrl="http://fanlyu.github.io/"$ cd public$ git add -A$ git commit -m "first comm$ git push
