Hello,
I have a base.html that imports a macros.html
{% import "macros.html" as macros %}
and page.html that extends base.html and uses macros defined in macros.html and include another template {% include "utils/breadcrumb.html" %}
that does not use any macros at all. This results in the error
Error: Failed to render page ‘/zblog/content/writings/book1/2-4IntoaSpin.md’
Error: Reason: Failed to render ‘page.html’ (error happened in a parent template)
Error: Reason: Macro namespacemacros
was not found in templateutils/breadcrumb.html
. Have you maybe forgotten to import it, or misspelled it?
The error happens even if the breadcrumbs.html is empty and is resolved if I import the macros.html in the breadcrumbs.html.
What am I doing wrong?
Thanks