PostComparer#post_date use the provided date instead of re-parsing the whole name.

This commit is contained in:
Parker Moore 2016-03-15 16:08:32 -07:00
parent 97efa0f0ce
commit 4883a24363
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ module Jekyll
end
def post_date
@post_date ||= Utils.parse_date(name,
"\"#{name}\" does not contain valid date and/or title.")
@post_date ||= Utils.parse_date(date,
"\"#{date}\" does not contain valid date and/or title.")
end
def ==(other)