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

Show TOC in sidebar #41

Closed
Kurandur opened this issue Jun 17, 2015 · 5 comments
Closed

Show TOC in sidebar #41

Kurandur opened this issue Jun 17, 2015 · 5 comments

Comments

@Kurandur
Copy link

This is more a feature request.

Would it be possible to show the table of contents in the sidebar? I made it possible with an ugly hack. It would be prettier to add it the options. I added a screenshot of how it looks right now.

tocinsidebar

@giterlizzi
Copy link
Owner

Hi! I have tested different solutions but the easy solution is to use the Inline TOC plugin. Few days ago i have added the support for this plugin (see #115).

You can add in sidebar page the {{INLINETOC}} tag. In addition this plugin automatically hide the main TOC.

I hope this solution is the most helpful.

Best regards,
Joseph

@Frozenlock
Copy link

Isn't {{INLINETOC}} for the current page (in this case sidebar)?

I added the tag into my sidebar page, but I don't see the TOC for the main content.

@raychani
Copy link

I've tested inlineTOC plugin with this template.
But the plugin and this template don't work fine.
I added the tag into my sidebar. I can see the TOC.
But sometimes the space(that displayed toc) was remained.

@igittigitt
Copy link

I also failed to get "Inline TOC" Plugin running with bootstrap3/cerulean. I put {{INLINETOC}} in rightsidebar. After editing and saving a page, the TOC is displayed one time in the sidebar and not in the page. Successive page loads show the TOC on page again and not in sidebar.

Another thing is the layout of the TOC when rendered by the plugin. I set my TOC to display only H2-levels. With three H2 headlines in the page, the lines in TOC following the first line, are intendet.

@genseirin
Copy link

Has anyone managed to get this working? This would be a really nice feature.

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

No branches or pull requests

6 participants