PostComparer#post_date use the provided date instead of re-parsing the whole name.
This commit is contained in:
parent
97efa0f0ce
commit
4883a24363
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue