mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
add support for unpublished drafts
I keep all my ideas for blog posts as drafts in my draft folder. However I'm only really working on a couple at once. This let's me mark drafts that I'm not working on right now as unpublished so they don't clutter the site while I'm checking on the other drafts.
This commit is contained in:
@@ -186,7 +186,9 @@ module Jekyll
|
||||
drafts = read_content(dir, '_drafts', Draft)
|
||||
|
||||
drafts.each do |draft|
|
||||
aggregate_post_info(draft)
|
||||
if draft.published?
|
||||
aggregate_post_info(draft)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user