I discovered that the posts template is currently hardcoding the section path and can't really be reused for other sections.
This is done to display the posts on the root page.
This PR refactors the posts template into a more generic section.html template which gets used for all sections by zola.
To fix the issue with displaying posts on the root page, I added a custom section_path frontmatter variable to overwrite the section used in the template.See the root _index.html to how it is used.
I discovered that the posts template is currently hardcoding the section path and can't really be reused for other sections. This is done to display the posts on the root page.
This PR refactors the posts template into a more generic
section.html
template which gets used for all sections by zola. To fix the issue with displaying posts on the root page, I added a customsection_path
frontmatter variable to overwrite the section used in the template.See the root_index.html
to how it is used.