Skip to content

How to setup Drafts? (Drafts are broken when viewed locally) #91

Locked Answered by MrGreensWorkshop
joshbuker asked this question in How to
Discussion options

You must be logged in to vote

I will explain this in as much detailed as I can, so that other people can benefit this as well.

So What are drafts?

Drafts are posts without a date in the filename. 
They’re posts you’re still working on and don’t want to publish yet. 
from: https://jekyllrb.com/docs/posts/

How to use drafts

  1. Create a file at _drafts/example.md (root folder of project. where _data or _layout is located)
  2. Open 2022-02-10-Examples.markdown file and copy all into created example.md.
  3. Then change title: Examples to title: New draft in example.md file.
  4. Add this layout: "post" after this line title: New draft.
  5. Run this command bundle exec jekyll serve --drafts --watch --host 0.0.0.0 --safe
  6. When the page is runn…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MrGreensWorkshop
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
How to
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #91 on July 14, 2022 06:24.