Permalink
Browse files

Merge pull request #831 from dhilgarth/feature/fix_post_url

Fix broken post_url with posts with a time in their YAML front matter.
  • Loading branch information...
2 parents 197f52b + 87f6f8c commit e98053ea8a7187debdada6a8307c3ce9a6ba3252 @parkr parkr committed Mar 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jekyll/tags/post_url.rb
@@ -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

0 comments on commit e98053e

Please sign in to comment.