Drafts Directory
This directory is for draft blog posts that are not ready for publication. Posts in this directory:
- Will be tracked in git (so you can version control your drafts)
- Won’t be published to the site by setting
draft: true
in the front matter - Can be previewed locally by running
hugo server -D
To create a new draft post, create a new .md file in this directory using this format:
---
title: "Your Draft Title"
date: YYYY-MM-DD
description: "Brief description of your post"
tags: ["tag1", "tag2"]
draft: true # This prevents the post from being published
---
Your content here...
When ready to publish:
- Set
draft: false
in the front matter - Move the file to the
content/posts/
directory