On Wed, 26 Apr 2023 at 19:33, Mitch Berkson <
mitc...@gmail.com> wrote:
>
> Thanks. That sounds better. Unfortunately, I'm lost looking for more information about incorporating page folder indexes into a template or how I would use listings.
Nikola has a different approach, it has standardized types of things
and auto-generates it based on other input, with templates whose names
are defined by Nikola. Tags and categories generate an index of tags
and categories and separate index pages per tag/category (with the
output directory structure configurable). Archives are generated for
every year/month/day (with the lowest level of granularity
configurable).
If you enable the PAGE_INDEX setting, index.html files will be
automatically generated for all pages directories and subdirectories.
It will use the list.tmpl template with the pagekind template variable
containing "page_index" (it's a list).
Listings are for displaying source code. If you put files in the
listings/ directory, they will be turned into formatted HTML, with
indexes added.
If you want more granular control, and if your use-case does not fit
the Nikola standard use-cases, you can use the post-list directive in
a page:
https://getnikola.com/handbook.html#post-list - It has
filtering options and it lets you customize the template, so it is
probably as flexible as you need (although I recommend exploring the
standard index pages first).