Maintain backward compatibility by not requiring that pelicanhtml is copied to the blog home

This commit is contained in:
Jörg Dietrich
2014-02-11 22:15:37 +01:00
parent 5d0a5d2ec5
commit 8d6a4a9d79

View File

@@ -248,8 +248,12 @@ def notebook(preprocessor, tag, markup):
'SubCell':
{'enabled':True, 'start':start, 'end':end}})
if os.path.exists('pelicanhtml.tpl'):
template_file = 'pelicanhtml'
else:
template_file = 'basic'
exporter = HTMLExporter(config=c,
template_file='pelicanhtml',
template_file=template_file,
filters={'highlight2html': custom_highlighter},
transformers=[SubCell])