I’m trying to use GitHub - pawroman/zola-theme-terminimal: A simple, minimal retro theme for Zola theme.
I want to use their sensible defaults for the templates. Do I have to copy that, or can I just import it from the theme?
I’m trying to use GitHub - pawroman/zola-theme-terminimal: A simple, minimal retro theme for Zola theme.
I want to use their sensible defaults for the templates. Do I have to copy that, or can I just import it from the theme?
Of course you can extends the template like other templates do in its theme.
First create the base.html
or any name you like in your templates folder. Note, the templates folder from your project, not from theme.
In this example I’ll go with base.html for base template.
your_project/templates/base.html
{%- extends "zola-theme-terminimal/templates/index.html" %}
There, since zola-theme-terminimal uses index.html for its base, the above code extends it. From then on you can overwrite blocks contain in there.
index.html
won’t be always use; some might use names like base.html, and you can extend it via {%- extends "theme_name/templates/base.html" %}
HTH!
Thank you so much for the helpful answer @harrymkt !
I got it working!