From: Joey Hess Date: Thu, 20 Mar 2008 21:02:59 +0000 (-0400) Subject: web commit by http://jblevins.org/: A note about the toc plugin and headers in templates X-Git-Tag: 2.41~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=da7aad08e354a621b4b983dd2f76ac02e2c35527;p=ikiwiki.git web commit by jblevins.org/: A note about the toc plugin and headers in templates --- diff --git a/doc/plugins/toc/discussion.mdwn b/doc/plugins/toc/discussion.mdwn index 3d4c2b149..d1600c9ec 100644 --- a/doc/plugins/toc/discussion.mdwn +++ b/doc/plugins/toc/discussion.mdwn @@ -1 +1,6 @@ -If you are using the sidebar plugin and have a header in the sidebar it shows up in the table of contents. I can see why this happens but it surprised me and wasn't the desired effect in my specific situation. -- [[AdamShand]] \ No newline at end of file +If you are using the sidebar plugin and have a header in the sidebar it shows up in the table of contents. I can see why this happens but it surprised me and wasn't the desired effect in my specific situation. -- [[AdamShand]] + +A related side effect: If you use any sort of headers in the page +template (such as placing the page title in an `

`), the toc plugin +picks it up. I suppose it parses the entire page rather than just the +rendered content. --[[JasonBlevins]]