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 end
def post_date def post_date
@post_date ||= Utils.parse_date(name, @post_date ||= Utils.parse_date(date,
"\"#{name}\" does not contain valid date and/or title.") "\"#{date}\" does not contain valid date and/or title.")
end end
def ==(other) def ==(other)