Skip to content

Commit 5a8cdbf

Browse files
committedFeb 16, 2017
Avoid replicating compiler detection logic.
1 parent e8dab6d commit 5a8cdbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nikola/nikola.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ def generic_renderer(self, lang, output_name, template_name, filters, file_deps=
21732173

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

0 commit comments

Comments
 (0)
Failed to load comments.