Repository navigation
Replies: 1 comment
|
Hum... I guess the problem was related to using an older hugo version. After upgrading, the local table of contents did show up without the need to do anything else! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've just discovered this amazing project (kudos to @imfing for this amazing work!), and I'm already loving it. There's only one feature that I'm missing or (hopefully!) it's there but I have not been able to make it work: I would like to have a local table of contents that displays every heading within the page. It could either be in the sidebar or as a new TOC at the right side, like many other documentation projects.
According to https://imfing.github.io/hextra/docs/guide/configuration/#table-of-contents, this should simply show up when content have multiple headings, but this is not working on my demo.
If I understood this page properly, hextra should have its onw shortoce, but I don't seem to make it work by adding it as
{{ hextra-toc }}Last, I tried adding
{{ .TableOfContents }}as described in the Hugo documentation page (https://gohugo.io/methods/page/tableofcontents/) and it is not rendering the TOC.Am I missing something?
All reactions