Make post draft

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Make post draft

gamussa
Hi guys,

Small question. For some reasons, I couldn't find answer in this forum.
How I can mark a post as draft and exclude it from blog build?

Cheers,
Vik
Reply | Threaded
Open this post in threaded view
|

Re: Make post draft

LightGuard
Administrator
It doesn't look like it's been implemented. I know we've talked about it, but it isn't in there right now.


On Fri, Jul 19, 2013 at 1:20 PM, gamussa <[hidden email]> wrote:
Hi guys,

Small question. For some reasons, I couldn't find answer in this forum.
How I can mark a post as draft and exclude it from blog build?

Cheers,
Vik



--
View this message in context: http://talk-archive.awestruct.org/Make-post-draft-tp289.html
Sent from the Awestruct Talk mailing list archive at Nabble.com.

---------------------------------------------------------------------
Archives: http://talk-archive.awestruct.org/
To unsubscribe, e-mail: [hidden email]




--
Reply | Threaded
Open this post in threaded view
|

Re: Make post draft

mojavelinux
In reply to this post by gamussa
Vik,

This is implemented as the front matter attribute "draft". If you are using the legacy front matter, you write it as:

---
draft: true
---

If you write it using the Awestruct integration with AsciiDoc headers, then you write it as:

= Title of Post
Author Name
:awestruct-draft: true

Anytime you are setting an Awestruct-specific front-matter variable in an AsciiDoc document, you need to prefix it with awestruct- for it to be recognized. I'm thinking about making this more generic, but for now, that's how it's done.

Unfortunately, when you do this, it excludes the draft post even in development mode. I noticed in the Jekyll docs that Jekyll provides a switch to turn on rendering of drafts [1]. I think it's reasonable to enable them in development mode by default and use a site config variable to override this behavior in any profile. I'll file an issue.


-Dan



On Fri, Jul 19, 2013 at 1:20 PM, gamussa <[hidden email]> wrote:
Hi guys,

Small question. For some reasons, I couldn't find answer in this forum.
How I can mark a post as draft and exclude it from blog build?

Cheers,
Vik



--
View this message in context: http://talk-archive.awestruct.org/Make-post-draft-tp289.html
Sent from the Awestruct Talk mailing list archive at Nabble.com.

---------------------------------------------------------------------
Archives: http://talk-archive.awestruct.org/
To unsubscribe, e-mail: [hidden email]




--