Skip to content

Commit

Permalink
Avoid replicating compiler detection logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Feb 16, 2017
1 parent e8dab6d commit 5a8cdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/nikola.py
Expand Up @@ -2173,7 +2173,7 @@ def generic_renderer(self, lang, output_name, template_name, filters, file_deps=

def generic_page_renderer(self, lang, post, filters, context=None):
"""Render post fragments to final HTML pages."""
extension = self.get_compiler(post.source_path).extension()
extension = post.compiler.extension()
output_name = os.path.join(self.config['OUTPUT_FOLDER'],
post.destination_path(lang, extension))

Expand Down

0 comments on commit 5a8cdbf

Please sign in to comment.