Commit 5c0a5d49 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🐦

ensure website object is passed correctly

parent f14cfab4
Pipeline #2383 failed with stage
in 1 minute
......@@ -9,8 +9,8 @@ from . import template
def get_policy(template_dir, website=None):
html_generator = template.WebpageGenerator(template_dir, website=None)
copy_util = basics.CopyVerbatim(template_dir, website=None)
html_generator = template.WebpageGenerator(template_dir, website=website)
copy_util = basics.CopyVerbatim(template_dir, website=website)
def default_policy(rel_path):
if rel_path.suffix in [".html", ".xhtml", ".xml"]:
......
......@@ -43,7 +43,6 @@ class Generator:
context = {
'site': self.website
}
return template.render(context)
def get_template(self, src_path):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment