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

Add page TOC to navigation #71

Open
shivahnshankar opened this issue Jan 12, 2018 · 3 comments
Open

Add page TOC to navigation #71

shivahnshankar opened this issue Jan 12, 2018 · 3 comments

Comments

@shivahnshankar
Copy link

It would be great to have an option to add the TOC as links in the navigation menu when reading a long page with lots of headers. Else we would need to break the document into smaller chunks in a lot of folders, or use the TOC syntax in the page but it only displays the TOC at the top of the page itself, rather than the navigation menu.

In the forum, I saw that this can be enabled by inserting {{page.content | toc}} in the twig template of Learn2 that loops over the documents. Any suggestion where this could be inserted?

@ghost
Copy link

ghost commented Aug 28, 2018

This is missing from the theme. Is there a way to integrate this currently? It should also be configurable which header are included into the menu. Standard could be h2. But it should be optional.

@KoljaL
Copy link

KoljaL commented Apr 6, 2020

still missing...
Anyone any idea?

@andrekutianski
Copy link

the theme is dead 💀

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

3 participants