[hot] [fix] web_page.py
This commit is contained in:
parent
330c057ae7
commit
ceb862a0cf
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class WebPage(WebsiteGenerator):
|
|||
|
||||
def render_dynamic(self, context):
|
||||
# dynamic
|
||||
if "<!-- render-jinja -->" in context.main_section:
|
||||
if context.main_section and "<!-- render-jinja -->" in context.main_section:
|
||||
context["main_section"] = frappe.render_template(context.main_section,
|
||||
{"doc": self, "frappe": frappe})
|
||||
context["no_cache"] = 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue