That’s not doable with index.tmpl. You could, however, disable/move
those indexes (via conf.py) and create a page using reStructuredText
and post lists:
https://getnikola.com/handbook.html#post-list
You could have a page that will end up as /index.html (2nd element in
PAGES = ""; slug = index) and put a post list for every section there.
index.tmpl (and general post indexes) already does some filtering and
stuff and is not feasible for your idea.
PS. you were looking for post.section_name()
--
Chris Warrick <
https://chriswarrick.com/>
PGP: 5EAAEA16