From 2e1316ec8b96215bc1cd0da4afd4e8757e981472 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 12 May 2013 01:08:33 +0200 Subject: [PATCH] Ensure the page is in a subdir. That's the only time it's eff'd. --- lib/jekyll/page.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/page.rb b/lib/jekyll/page.rb index 58da1b83..1a46c854 100644 --- a/lib/jekyll/page.rb +++ b/lib/jekyll/page.rb @@ -157,7 +157,7 @@ module Jekyll end def uses_relative_permalinks - permalink && !permalink.include?(File.expand_path(@dir, site.source)) + permalink && @dir != "" && !permalink.include?(File.expand_path(@dir, site.source)) end end end