natikgadzhi / notoma

Use Notion as your blogging editor, with any static gen blog engine. Notoma converts Notion pages to Markdown files.
https://nategadzhi.github.io/notoma/
Apache License 2.0
50 stars 3 forks source link

"jinja2.exceptions.TemplateNotFound: post.md.j2" with posts duiplicated from example #72

Closed kaedea closed 3 years ago

kaedea commented 3 years ago

Input url: https://www.notion.so/kaedea/5e23a71aa5904f3f8589a613a6dc1e81?v=8f7047c7b1b34538909dca1c64277787

then outcomed the following error:

Traceback (most recent call last):
  File "/usr/local/bin/notoma", line 8, in <module>
    sys.exit(runner())
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/notoma/cli.py", line 76, in convert
    __convert_pages(published_pages(blog), dest, config, verbose)
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/notoma/cli.py", line 110, in __convert_pages
    page_to_markdown(page, config=config)
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/notoma/core.py", line 48, in page_to_markdown
    return load_template("post", debug=True, config=config).render(
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/notoma/templates.py", line 59, in load_template
    return env.get_template(f"{name}.md.j2")
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/jinja2/environment.py", line 838, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/jinja2/environment.py", line 812, in _load_template
    template = self.loader.load(self, name, globals)
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/jinja2/loaders.py", line 112, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/local/Cellar/notoma/0.2.1/libexec/lib/python3.9/site-packages/jinja2/loaders.py", line 289, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: post.md.j2