参考 https://www.jianshu.com/p/f1b02e00f206

可搭建出一个博客并发布在github

参考 https://blog.csdn.net/btlas/article/details/51712596

可将github地址解析在个人域名下

hugo命令:

新建文章

 hugo new post/xxx.md       draft 改为 false  

本地预览

hugo server --theme=hyde

即可在浏览器里输入: http://localhost:1313访问网站

发布在github

 hugo --theme=hyde --baseUrl="https://YOURNAME.github.io/"

我发现Theme 为 nuo时发布命令需要这样写:

hugo --theme=nuo --buildDrafts --baseUrl="https://YOURNAME.github.io/"

更新文章只需上面步骤即可。