hugo-发布文章步骤

env

  • hugo themes hugo-theme-even
  • hugo-extend

发布流程

flow

  • new markdown
  • debug md
  • building to docs by static
  • push github-docs

1.create post

# 1.1new post
hugo new post/rancher-modify-node-hostname.md
hugo new post/2022/xxx.md

# 1.2.dev
post/rancher-modify-node-hostname.md   # draft: false 草稿
hugo server -D 

# 1.3.write static webfiles to docs
hugo -d docs
git add .
git commit -m "xxx"
git push

2. add image

static/img/

# 引用图片
![](/img/2021-04/mvpbang_2021-04-01_12-05-07.png)