Merge pull request #2042 from anthonyjsmith/draft-path

This commit is contained in:
Parker Moore
2014-02-16 21:36:00 -05:00
5 changed files with 83 additions and 1 deletions

View File

@@ -18,6 +18,11 @@ module Jekyll
File.join(source, dir, '_drafts')
end
# The path to the draft source file, relative to the site source
def relative_path
File.join(@dir, '_drafts', @name)
end
# Extract information from the post filename.
#
# name - The String filename of the post file.