Merge pull request #3456 from willnorris/draft

This commit is contained in:
Parker Moore 2015-02-14 01:34:31 -08:00
commit 9b50fc9f3b
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@ module Jekyll
content
excerpt
excerpt_separator
draft?
]
# Post name validator. Post filenames must be like:
@ -305,6 +306,11 @@ module Jekyll
end
end
# Returns if this Post is a Draft
def draft?
is_a?(Jekyll::Draft)
end
protected
def extract_excerpt