Allow per post permalinks to end in `.htm`

Fixes #2920
This commit is contained in:
Pat Hawks 2014-09-14 11:58:16 -07:00
parent 5445a1bead
commit fdf58c5ce2
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ module Jekyll
def destination(dest)
# The url needs to be unescaped in order to preserve the correct filename
path = Jekyll.sanitized_path(dest, URL.unescape_path(url))
path = File.join(path, "index.html") if path[/\.html$/].nil?
path = File.join(path, "index.html") if path[/\.html?$/].nil?
path
end