From c635611232130bef9a66b7ad9734ba5f0523d4c2 Mon Sep 17 00:00:00 2001 From: JoshTriplett Date: Thu, 3 Jan 2013 14:56:07 -0400 Subject: [PATCH] --- doc/bugs/toc_displays_headings_from_sidebar.mdwn | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/bugs/toc_displays_headings_from_sidebar.mdwn diff --git a/doc/bugs/toc_displays_headings_from_sidebar.mdwn b/doc/bugs/toc_displays_headings_from_sidebar.mdwn new file mode 100644 index 000000000..469ca8a33 --- /dev/null +++ b/doc/bugs/toc_displays_headings_from_sidebar.mdwn @@ -0,0 +1,3 @@ +The [[/ikiwiki/directive/toc]] directive scrapes all headings from the page, including those in the sidebar. So, if the sidebar includes navigational headers, every page with a table of contents will display those navigational headers before the headers in that page's content. + +I'd like some way to exclude the sidebar from the table of contents. As discussed via Jabber, perhaps toc could have a config option to ignore headers inside a nav tag or a tag with id="sidebar". -- 2.26.2