Replies: 1 comment 2 replies
-
This is a limitiation of Hugo itself and not possible as far as I know. The reason is, that your text must be part of the markdown before it is converted to HTML by Hugo. One way to achieve this, would mean to add a self-written shortcode at the end of each of your markdown files. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When customizing the
content-footer.html
partial, I'm trying to include a table of contents for any section/chapter pages that currently exist. However, even if I put the anchor and id on my h2/h3 elements, the table of contents remains empty.For example, this is what is in my
content-footer.html
But when my page renders, the "Section Contents" entry is not available in the page's table of contents.
Is it possible to link into the page table of contents creation from other templates in any way?
Beta Was this translation helpful? Give feedback.
All reactions