Fix broken post_url with posts with a time in their YAML front matter. #831

Merged
merged 3 commits into from Mar 4, 2013
@@ -23,7 +23,7 @@ def render(context)
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