Solejay's Blog

Back

  1. 新建文章
hugo new posts/my-post.md
bash
  1. 编辑摘要
title: "title"
date: 2021-04-04T15:08:47+08:00
draft: true
toc: true
image: "image.url"
tags: ["tag1","tag2"]
categories: [category]
bash
  1. 编辑内容

  2. 本地开启草稿视图

hugo server -D
bash
  1. 发布草稿文章

如果需要将草稿内容进行发布,在执行 hugo 生成发布内容时附带 -D 或则 —buildDrafts 即可。

hugo -D
bash

参考链接

使用 Hugo 发布文章