Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit e98053ea8a7187debdada6a8307c3ce9a6ba3252 2 parents 197f52b + 87f6f8c
@parkr parkr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/jekyll/tags/post_url.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.