It appears, I was getting the problem because the import statement was not the first line of index.html.
I fixed that and the error goes away. However, the KaTex is not being loaded on the page to which I added the following. Do you know why this might be happening?
Thank you.
+++
title = "Glossary of Terms"
[extra]
katex = true
+++
* __Underflow and Overflow__
Underflow occurs when numbers near zero are rounded to zero.
Overflow occurs when numbers with large magnitude are approximated as \\(\infty\\).
In my page.html template I have:
{% block head %}
{% if page.extra.katex %}
{{ macros::katex() }}
{% endif %}
{% endblock head %}
Thank you @keats. I tried removing the if statement before the macro, but it does not work. The KaTeX is never loaded as you said. I looked in view source and there is no KaTeX there.
Thank you Keats. I did not have it before, but I created a private repo on Github to share it. Can you please share your Github username, so that I can give you access to it?
BTW, have you created Zola. If so, thank you so much. I hope to use it to organize my notes.
Youâre missing {% block head %}{% endblock %} in your index.html, the page.html is extending this block but it doesnât exist.
Arguably that should probably be an error when you do tbh, maybe in Tera v2.
Yay!! That works. Sorry for the long chase. I read the docs of Tera, and understood that how the blocks work, but did not realize I was making this error.