Add support for relative permalinks

This commit is contained in:
Parker Moore 2013-05-11 18:03:03 +02:00
parent 19bc54bb07
commit 1f23bc4dc0
1 changed files with 5 additions and 1 deletions

View File

@ -64,7 +64,11 @@ module Jekyll
return @url if @url
url = if permalink
permalink
if uses_relative_permalinks
File.join(@dir, permalink)
else
permalink
end
else
{
"path" => @dir,