toggle hide table of contents with keypress. #408
simonallfrey
started this conversation in
Ideas
Replies: 2 comments
-
Hi, thanks for the idea. What about just adding the TOC to the expand shortcode (there is a bug right now, but that can be fixed easily)? Example code: {{< expand "Table of Content" >}}
{{< toc-tree >}}
{{< /expand >}} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Bugs fixed, both toc shortcodes can be nested to the expand shortcode now.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes I need a bit more space, so I've hacked in toggling hiding the table of contents by pressing 't'.
I'm lazy so I used jquery and dumped the code at the end of a site copy of site-footer.html
and in static/js/myscript.js
Perhaps people would appreciate this being implemented properly?
Beta Was this translation helpful? Give feedback.
All reactions