diff --git a/mknodes/theme/theme.py b/mknodes/theme/theme.py index 097b1408..421e6282 100644 --- a/mknodes/theme/theme.py +++ b/mknodes/theme/theme.py @@ -107,7 +107,8 @@ def get_resources(self) -> resources.Resources: variables=tmpl_ctx, ) req = [resources.CSSText(content=css_text, filename="mknodes_theme.css")] - return resources.Resources(css=req, templates=list(self.templates)) + templates = [i for i in self.templates if i] + return resources.Resources(css=req, templates=templates) def get_template_context(self) -> dict[str, Any]: """Return variables used to resolve the CSS template.