Skip to content
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

Is it possible to turn on table of contents for all pages ? #140

Open
sappy5678 opened this issue Jul 18, 2020 · 0 comments
Open

Is it possible to turn on table of contents for all pages ? #140

sappy5678 opened this issue Jul 18, 2020 · 0 comments

Comments

@sappy5678
Copy link

I try to find a way to set the table of contents ( TOC ) be True by default.
I know that set the front matter can turn on TOC, but I want to find a way to config this parameter in config.toml for all pages.
The code show me that you check .Params.toc first, and determine to show the TOC or not.
To my knowledge, Hugo's config.toml variable is .Site.Params.toc, and I don't know how to set .Params.toc in config.toml.
Is it possible to turn on the table of contents in config.toml for all pages?
Thanks for your great theme.

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

1 participant