Skip to content

Feature request: Zola Table of Contents #1616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jieyouxu opened this issue May 23, 2025 · 2 comments
Open

Feature request: Zola Table of Contents #1616

jieyouxu opened this issue May 23, 2025 · 2 comments

Comments

@jieyouxu
Copy link
Member

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?

@senekor
Copy link
Contributor

senekor commented May 23, 2025

Sounds good. It should probably be disabled by default, right? It could be enabled in the front matter of a post:

[extra]
toc = true

That variable can then be read by the template to conditionally enable the toc.

@jieyouxu
Copy link
Member Author

It should probably be disabled by default, right?

Yeah, I imagine it's way more distracting than helpful if your blog post "fits within a page", so to speak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants