I have something like this in my index.html template:
{% for section in section.subsections | reverse %}
{% set sub = get_section(path=section) %}
<p class="title grow">
<a href="{{sub.permalink | safe}}" class="button is-dark shadow is-normal">
{{ sub.components | first | capitalize}}
</a>
</p>
{% endfor %}
So basically loop over subsections from the root, which will be the content directories in the content folder and then in my case I reverse the order. Then use the subsection to get the section permalink which I can link to.
So you guys mean that this functionality doesn’t come out of the box? Slightly disappointing but on the other hand Zola seems very customisable for which I am grateful.
Thank you. I’ll see what I can put together and will report back.
That’s because the template engine has to serialize everything to JSON so doing that by default everytime would kill performance, even if you don’t need it. If someone manages to skip that step in Tera, I’d be more than happy to make that the default