Moon icon indicating copy to clipboard operation
Moon copied to clipboard

Draft Post

Open kamontat opened this issue 9 years ago • 7 comments

is the theme have draft post??? Draft Post is post that may not finish it yet or still have something to check before publishing

kamontat avatar Dec 22 '16 20:12 kamontat

Well it seems creating a _drafts folder is enough for it. https://jekyllrb.com/docs/drafts/ I don't understand what should I do.

TaylanTatli avatar Dec 23 '16 18:12 TaylanTatli

I didn't realise that this was a thing. Could be pretty useful. How does it work?

awnumar avatar Dec 29 '16 01:12 awnumar

@libeclipse just like @TaylanTatli said, create _drafts folder inside your project root...

I checked in Jekyll documentation... that can be found here

jtemporal avatar Dec 29 '16 20:12 jtemporal

Oh it requires a command line argument. Github won't support it then.

What I do is just do jekyll serve locally without drafting and just push when ready. There's no point of drafting if it's done like described in the docs, at least with github.

On Thu, 29 Dec 2016, 20:18 Jessica Temporal, [email protected] wrote:

@libeclipse https://github.com/libeclipse just like @TaylanTatli https://github.com/TaylanTatli said, create _drafts folder inside your project root...

I checked in Jekyll documentation... that can be found here https://jekyllrb.com/docs/drafts/

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TaylanTatli/Moon/issues/84#issuecomment-269687372, or mute the thread https://github.com/notifications/unsubscribe-auth/AIhzn9CF3Hz-GN6p8IxbkLucCdujZVFvks5rNBWigaJpZM4LUU-I .

awnumar avatar Dec 29 '16 20:12 awnumar

I don't understand what you mean by "Oh it requires a command line argument"... I meant to say that you'll have the _drafts folder on your project on github but it won't be used when generating the site...

Suppose you want to write a post but you don't want to publish it, you could just leave it without a date but then when you give the jekyll serve command you'd get an error saying 'ERROR: YOUR SITE COULD NOT BE BUILT: Invalid date'... I believe that's what the _drafts is for... so you put the 'working in progress posts under a directory that won't be used during the build...

jtemporal avatar Dec 29 '16 20:12 jtemporal

Oh so it's a whole feature to deal with a problem that isn't really a problem.

On the docs it says that you have to give the --drafts option so it wouldn't even work on github.

On Thu, 29 Dec 2016, 20:33 Jessica Temporal, [email protected] wrote:

I don't understand what you mean by "Oh it requires a command line argument"... I meant to say that you'll have the _drafts folder on your project on github but it won't be used when generating the site...

Suppose you want to write a post but you don't want to publish it, you could just leave it without a date but then when you give the jekyll serve command you'd get an error saying 'ERROR: YOUR SITE COULD NOT BE BUILT: Invalid date'... I believe that's what the _drafts is for... so you put the 'working in progress posts under a directory that won't be used during the build...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TaylanTatli/Moon/issues/84#issuecomment-269689208, or mute the thread https://github.com/notifications/unsubscribe-auth/AIhznwcpgCiWuUYxoGyaS_UjgxVTmfv8ks5rNBkWgaJpZM4LUU-I .

awnumar avatar Dec 29 '16 20:12 awnumar

Ooh that... the --drafts is used to "To preview your site with drafts" while testing locally I believe...

jtemporal avatar Dec 29 '16 20:12 jtemporal