Now, when I decide to insert a TOC within my content I place {{< table_of_contents >}} in the corresponding file and get the TOC which results e. g. in:
Configuring each tool
vdirsyncer khal khard Todoman
The first line (Configuring each tool) is as expected but the second one fails as each word is a separate heading and therefore each word should be on it’s own line.
The HTML source code of the generated HTML file looks as follows:
Is there a way to force a line break after each TOC entry? I’ve tried adding a <br>
at different places within the file table_of_contents.html but sadly without look.
Thanks for taking the time to read my help request!
Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.