Quick things about Zola that are easy to look over
- remember to use {{ __tera_context }} to print a page's variables
- If you want to use a .css stylesheet then that is a static resource
and it goes into your Zola project's rootdir's
/static
Otherwise you'll have generated pages not knowing where to find it.
I know it's on the content page of the documentation! Searches weren't helping!
- Having subdirs in the /content directory creates a Thing called a Section.
- The Section has Things called Pages.
- Zola's section has nothing to do whatsoever with the html tag
<section>
.
_index.md
has a base minimum requirement on its frontmatter/metadata or it won't work
_index.md
requires page_template
tag NOT template
, that's different!
page_template
is used for all the pages inside a section
- the Tera statement goes
{{ page.content | safe }}
_index.md
is kind of soft-required in every content dir even if you have an index.md
.
Things seem to break otherwise. It's common for projects to prefix _ as a special meaning;
idk what the special meaning in Zola's case is though.