draft example post
This commit is contained in:
parent
8ad33721db
commit
9cbb7b746f
2 changed files with 14 additions and 0 deletions
BIN
src/assets/og-images/a-draft-preview.jpeg
Normal file
BIN
src/assets/og-images/a-draft-preview.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
14
src/posts/2024/2024-07-21-draft.md
Normal file
14
src/posts/2024/2024-07-21-draft.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
draft: true
|
||||
title: 'A draft'
|
||||
description: "This is a draft. It will not be included in the final build."
|
||||
date: 2024-07-21
|
||||
---
|
||||
|
||||
In development (`npm run start`), you can preview posts that won't be published in production (`npm run build`) by setting `draft: true` in the front matter.
|
||||
|
||||
```yaml
|
||||
---
|
||||
draft: true
|
||||
---
|
||||
```
|
||||
Loading…
Reference in a new issue