lib/jekyll/page.rb in jekyll-3.0.2 vs lib/jekyll/page.rb in jekyll-3.0.3

- old
+ new

@@ -133,11 +133,14 @@ # dest - The String path to the destination dir. # # Returns the destination file path String. def destination(dest) path = site.in_dest_dir(dest, URL.unescape_path(url)) - path = File.join(path, "index.html") if url.end_with?("/") - path << output_ext unless path.end_with?(output_ext) + if url.end_with? "/" + path = File.join(path, "index.html") + else + path << output_ext unless path.end_with?(output_ext) + end path end # Returns the object as a debug String. def inspect