jdsteinbach / eleventy-plugin-toc

11ty plugin to generate a TOC from page content
61 stars 19 forks source link

clarify documentation #16

Closed mvolkmann closed 2 years ago

mvolkmann commented 4 years ago

I misunderstood the step "4. Use the filter in your template". After a while I figured out that that HTML goes in a layout, not in a markdown file. Maybe it would be more clear to say "4. Use the filter in your layout".

helmutgranda commented 4 years ago

I agree! we have TOCs by MD file, not a big deal we can make it global but at first I thought it was a mistake somewhere else.

jdsteinbach commented 2 years ago

Thanks for the clarification! Since Eleventy only provides the content variable in layout templates, I'll clarify that the filter needs to go there, not in a content file.