diff --git a/lib/jekyll/document.rb b/lib/jekyll/document.rb index 1485672f..66668e5a 100644 --- a/lib/jekyll/document.rb +++ b/lib/jekyll/document.rb @@ -90,7 +90,7 @@ module Jekyll # # Returns the output extension def output_ext - Jekyll::Renderer.new(site, self).output_ext + @output_ext ||= Jekyll::Renderer.new(site, self).output_ext end # The base filename of the document, without the file extname.