From 5af8e1f40ce4f2e319a87c594b152f8bc315866d Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 4 Mar 2013 03:20:59 +0100 Subject: [PATCH] Applying a more 'Ruby' style to post_url.rb --- lib/jekyll/tags/post_url.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/tags/post_url.rb b/lib/jekyll/tags/post_url.rb index 008c12a2..b9be4ab5 100644 --- a/lib/jekyll/tags/post_url.rb +++ b/lib/jekyll/tags/post_url.rb @@ -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