- 新建文章
hugo new posts/my-post.md
bash- 编辑摘要
title: "title"
date: 2021-04-04T15:08:47+08:00
draft: true
toc: true
image: "image.url"
tags: ["tag1","tag2"]
categories: [category]
bash-
编辑内容
-
本地开启草稿视图
hugo server -D
bash- 发布草稿文章
如果需要将草稿内容进行发布,在执行 hugo 生成发布内容时附带 -D 或则 —buildDrafts 即可。
hugo -D
bash参考链接