On Sun, Sep 5, 2021 at 9:22 AM Everlanes <[email protected]> wrote: > Hi, > > Second I have set in my Sphinx theme to have a local table of contents in >> the sidebar. >> > > I would also like to have a TOC of the current page in the sidebar. I > managed to use the Markdown [TOC] extension, but then the TOC is inside the > content div. > > Is there a way to place the TOC somewhere else inside the HTML DOM using > the template? > Did you manage to have the TOC in a sidebar? >
There is no sidebar in Nikola per se, there are sidebars in some themes. You can't usually put content in the sidebar. HOWEVER: hey, it's HTML, you can create the TOC in the content with display: None and copy its innerHTML into a DIV in the sidebar using JS. -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/CALXDAfpjvE4sVEnt0v%2BfLQDB3vymgphxuTERB6OZx8q7jYfdLg%40mail.gmail.com.
