维护阶段:新建一篇文章

1.进入博客目录,新建文章并编辑

hugo new post/new.md

2.注意文章draft属性,true则不显示

draft = false !!!

[3.查看效果]

hugo server -D

访问http://localhost:1313

4.生成网页

hugo

5.进入public目录

git add -A

git commit -m “new commit”

git push -u origin main

[git配置在./.git/config中]

6.查看jianzemax.github.io主页

[github加载新网页可能会有延迟,需要刷新或等待加载完成]