diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 5ea56898..7e01f635 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -255,7 +255,7 @@ module Jekyll def destination(dest) # The url needs to be unescaped in order to preserve the correct filename path = File.join(dest, CGI.unescape(self.url)) - path = File.join(path, "index.html") if template[/\.html$/].nil? + path = File.join(path, "index.html") if path[/\.html$/].nil? path end