Ensure the page is in a subdir. That's the only time it's eff'd.

This commit is contained in:
Parker Moore
2013-05-12 01:08:33 +02:00
parent 6167747440
commit 2e1316ec8b

View File

@@ -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