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