This shows how to add draft posts feature to hyde. This will be a part of hyde 0.8.7.
mkdir ~/test_drafts
cd ~/test_drafts
hyde create
- Generate and serve
hyde gen -r
hyde serve
- Open
http://localhost:8080/blog
to make sure you see "A Happy Post", "An Angry Post" and "A Sad Post" listed.
- Add
drafts.py
to~/test_drafts
- Make the edits to site.yaml as shown in this gist
- Add
prod.yaml
to~/test_drafts
- Mark
content/blog/angry-post.html
as draft as shown in this gist.
- Generate the site in production mode
Drafts are not enabled in development mode.
hyde gen -r -c prod.yaml
hyde serve -c prod.yaml
- Open
http://localhost:8080/blog
to make sure you only see "A Happy Post" and "A Sad Post" listed.