Hugo发布博客流程

目录
警告
本文最后更新于 2021-07-01,文中内容可能已过时,请谨慎使用。
使用 hugo 编写文章必会指令
常用指令
1.新建文章
在博客根目录下进行,我的根目录为F:\hugo\myblog
,使用下面指令在post
文件夹下新建,新建后将front matter
中的draft
参数修改为false
;
hugo new posts/xxxx.md
2.本地预览和修改
可在http://localhost:1313/
预览和修改内容
hugo server
或
hugo server -e production(可以展示评论,cdn等内容)
3.本地生成静态资源
hugo
4.提交 public 资源到 github 仓库
git add .
git commit -m '提交说明'
git push -u origin master
5.gitee 搭建博客参考