You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.
How can I add a table of contents that reads the titles and subtitles from the markdown, and rmarkdown document? If it is not possible, can such functionality be added?
The text was updated successfully, but these errors were encountered:
This should help you: https://gohugo.io/content-management/toc/
In short: add the {{.TableOfContents}} page variable into your template where you want it to appear. I added it right above {{ .Content }} in my single_article.html partial (I made a copy of it in hugo/layouts/partials/single_article.html to override the default and leaving the original untouched for easier updating):
How can I add a table of contents that reads the titles and subtitles from the markdown, and rmarkdown document? If it is not possible, can such functionality be added?
The text was updated successfully, but these errors were encountered: