diff options
Diffstat (limited to 'nikola/plugins/compile_wiki.py')
| -rw-r--r-- | nikola/plugins/compile_wiki.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nikola/plugins/compile_wiki.py b/nikola/plugins/compile_wiki.py index 1215506..fb9e010 100644 --- a/nikola/plugins/compile_wiki.py +++ b/nikola/plugins/compile_wiki.py @@ -57,14 +57,16 @@ class CompileTextile(PageCompiler): output = HtmlEmitter(document).emit() out_file.write(output) - def create_post(self, path, onefile=False, title="", slug="", date="", - tags=""): + def create_post(self, path, onefile=False, **kw): + metadata = {} + metadata.update(self.default_metadata) + metadata.update(kw) + d_name = os.path.dirname(path) + if not os.path.isdir(d_name): + os.makedirs(os.path.dirname(path)) if onefile: raise Exception('There are no comments in CreoleWiki markup, so ' 'one-file format is not possible, use the -2 ' 'option.') - d_name = os.path.dirname(path) - if not os.path.isdir(d_name): - os.makedirs(os.path.dirname(path)) with codecs.open(path, "wb+", "utf8") as fd: fd.write("Write your post here.") |
