Skip to content

Commit 45fcfb0

Browse files
committed
document how to create drafts and posts
1 parent b771dfa commit 45fcfb0

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

content/posts/drafts/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
+++
2+
draft = true
3+
title = 'README'
4+
+++
5+
6+
## How to create a draft
7+
To start, run
8+
```bash
9+
hugo new content content/posts/drafts/my-blog.md
10+
```
11+
12+
If you need to add assets like images, create a folder with file name,
13+
and move draft file inside folder and rename to `index.md`
14+
15+
```bash
16+
# before
17+
drafts/
18+
| my-blog.md
19+
20+
# after
21+
drafts/
22+
| my-blog/
23+
| index.md
24+
| asset.png
25+
```
26+
27+
## Publishing the draft
28+
After you are ready to publish your masterpiece, move your post to `content/posts/year/month/day` folder.
29+
You can also update `date` property to `date = 'year-month-day'`
30+
31+
And don't forget to remove `draft = true` from the post!
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
date = '2026-01-05T21:30:04+02:00'
3+
draft = true
4+
title = 'Keepassxc Keepassdx Passkey Interpobility'
5+
+++

0 commit comments

Comments
 (0)