Search code examples
pythonhtmlpelican

How is it possible to add a .html file in templates directory and parse .html file in output in Pelican?


I am using Pelican to create a static site. What I want to achieve is to create a new .html file, let's say "contactus.html" in "templates" directory and parse it's output in "content" directory.

Thank you very much in advance.


Solution

  • What I did @Alex N was to create a .md file in the content/pages directory and added attributes "save_us:contact.html" and "template:contactus". What it does in fact is to generate a contact.html file in content root page and get the info from the "contactus.html" placed in my template directory.

    For any further questions please let me know.