diff --git a/lib/jekyll/tags/post_url.rb b/lib/jekyll/tags/post_url.rb index ff4a29b8..008c12a2 100644 --- a/lib/jekyll/tags/post_url.rb +++ b/lib/jekyll/tags/post_url.rb @@ -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