From: Amitai Schlair Date: Sun, 15 Sep 2013 02:43:36 +0000 (-0400) Subject: template a red herring; toc vs. inline guilty X-Git-Tag: debian/3.20140102~86^2~12 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/0cb014b9d26cdbc0693421a6577f74042f5591b6 template a red herring; toc vs. inline guilty --- diff --git a/doc/plugins/toc/discussion.mdwn b/doc/plugins/toc/discussion.mdwn index a09ae5703..028437dba 100644 --- a/doc/plugins/toc/discussion.mdwn +++ b/doc/plugins/toc/discussion.mdwn @@ -8,3 +8,12 @@ rendered content. --[[JasonBlevins]] Why doesn't the TOC appear in the edit page preview? It only appears when the page is finally rendered. This makes it somewhat difficult to organize headings, saving & re-editing all the time. My user page currently has a toc to play with: --[[sabr]] > Fixed. --[[Joey]] + +Just ran into a side effect of `\[[!toc]]` being a NOP in pages +which are inlined: pages with `\[[!template id=note text="\[[!toc]]"]]` +wound up having the note rendered in feeds as "Use this template +to insert a note into a page". Worked around this by making a local +copy of the template and removing its `...` +section. Besides needing to generate guaranteed-unique anchor names, +are there other reasons this directive couldn't be made to work on +inlined pages? --[[schmonz]] diff --git a/doc/todo/fancypodcast.mdwn b/doc/todo/fancypodcast.mdwn index 7ffff6252..128017021 100644 --- a/doc/todo/fancypodcast.mdwn +++ b/doc/todo/fancypodcast.mdwn @@ -56,12 +56,6 @@ Episode enclosure |(./) |(./) |(./) |(./) ### Other ideas -* Don't render template text (e.g., "Use this template to insert a - note into a page") in feeds. - * [[schmonz]] observes this in a dual-feed (one for enclosures, - another for browsers) scenario, but not in the typical case. - Remaining to be verified: that once migrated to fancypodcast, - this stops being a problem. * Optionally specify the enclosure's: * MIME type, in case `File::MimeInfo` guesses wrong. * Duration, in case `ffprobe` guesses wrong.