From fdf58c5ce2ba9b294ff7aacadc7fafe70f648e0d Mon Sep 17 00:00:00 2001 From: Pat Hawks Date: Sun, 14 Sep 2014 11:58:16 -0700 Subject: [PATCH] Allow per post permalinks to end in `.htm` Fixes #2920 --- lib/jekyll/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index b13deff8..293e2c5d 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -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