Add a --preview flag for rendering posts that are not published (#374 & #41) #513

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
4 participants

mixonic commented Feb 23, 2012

This commit behaves a bit differently than #374, but accomplishes the same task. We collect posts to not be published, then, if the --preview flag is present, still render them. These posts are not processed for tags or categories, so they will not change other parts of your site.

I've got a secondary reason for how I wrote this patch as well: I need unpublished_posts to be stored for later processing with another project of mine.

Feedback or ideas? I'm happy to spend a little time to get this upstream. Thanks.

lotyrin commented Mar 14, 2012

👍 But I don't see why you'd not want this to affect tags/whatnot pages. If I'm previewing a site with all my content published, I'm previewing a version of my site with all content published.

scribu referenced this pull request Jan 20, 2013

Merged

Add --drafts flag #769

Owner

parkr commented Mar 17, 2013

We have drafts now :)

parkr closed this Mar 17, 2013

jekyllbot locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.