-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
FR: Table of Contents #120
Comments
Oh, I see that it is already provided as an Then maybe change this in an issue to move the field to the top-level front-matter because it seems that Zola supports this field natively. You could support both I guess. Maybe I can fix that. |
Wait, I'm confused, I see this line
What does that do/mean exactly? I thought the top-level So the |
Hey Steven!
The line of code you shared is checking whether two conditions are met:
It's important to check the second part because not all pages have ToCs. For example, this page has no headers in the article, so it doesn't get a Zola doesn't actually have a built-in ToC. The page you linked simply shows an example as to how it could be implemented. In tabi, the ToC is built by the I'm glad you found the documentation on the theme's demo. In the future, I plan on adding a long page explaining all of tabi's features (both in |
The guide to all of tabi's settings is live! Check it out: Mastering tabi Settings: A Comprehensive Guide |
I see some themes have table of contents with like anchors for all the headings that optionally can be added in front of either a blog post of any page. I'd be very interested in having this 🙏
The text was updated successfully, but these errors were encountered: