搭建/部署

  1. hugo new site .\fanlyu
  • 创建新页面
  1. hugo new about.md
  • 安装主题,选一个主题
  1. git clone [https://github.com/spf13/hyde.git](https://github.com/spf13/hyde.git)
  • 运行hugo
  1. cd themes
  2. hugo server --theme=hyde --buildDrafts
  3. cd ..
  • 部署
    1. 到 github 新建一个fanlyu.github.io 的repository
    2. hugo --theme=hyde --baseUrl="http://fanlyu.github.io/"
    3. 执行
  1. $ cd public
  2. $ git init
  3. $ git remote add origin [https://github.com/coderzh/coderzh.github.io.git](https://github.com/coderzh/coderzh.github.io.git)
  4. $ git add -A
  5. $ git commit -m "first commit"
  6. $ git push -u origin master

更新

每次修改

  1. $ hugo --theme=hyde --baseUrl="http://fanlyu.github.io/"
  2. $ cd public
  3. $ git add -A
  4. $ git commit -m "first comm
  5. $ git push