Merge pull request #831 from dhilgarth/feature/fix_post_url

Fix broken post_url with posts with a time in their YAML front matter.
This commit is contained in:
Parker Moore 2013-03-03 18:17:24 -08:00
commit e98053ea8a
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module Jekyll
site = context.registers[:site]
site.posts.each do |p|
if p == @post
if p.slug == @post.slug and p.date.year == @post.date.year and p.date.month == @post.date.month and p.date.day == @post.date.day
return p.url
end
end