mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-14 16:45:25 -05:00
Applying a more 'Ruby' style to post_url.rb
This commit is contained in:
@@ -23,8 +23,12 @@ module Jekyll
|
||||
site = context.registers[:site]
|
||||
|
||||
site.posts.each do |p|
|
||||
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
|
||||
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
|
||||
|
||||
p.url
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user