Open
Description
For some longer blog posts, I find having a per-page TOC to be quite useful. Maybe e.g. https://www.getzola.org/documentation/content/table-of-contents/ could be enabled for the blog?
For some longer blog posts, I find having a per-page TOC to be quite useful. Maybe e.g. https://www.getzola.org/documentation/content/table-of-contents/ could be enabled for the blog?
Activity
senekor commentedon May 23, 2025
Sounds good. It should probably be disabled by default, right? It could be enabled in the front matter of a post:
That variable can then be read by the template to conditionally enable the toc.
jieyouxu commentedon May 23, 2025
Yeah, I imagine it's way more distracting than helpful if your blog post "fits within a page", so to speak.
senekor commentedon May 28, 2025
I experimented a bit, but I honestly couldn't get it to a place where I was happy with it. Maybe someone else is more creative than me. I don't intend to work on this myself, but I'm open to PRs.