mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-30 21:33:31 +00:00
3ba7c92530
Fill the .TableOfContents template variable when writing Asciidoc content. This is done by letting Asciidoc render its TOC as HTML, then extract this HTML rendered TOC, parse it into a tableofcontents.Root and finally remove it from the HTML content. This aims to stay in the logic that the Asciidoc parsing is entirely done by the external helper. See #1687 |
||
---|---|---|
.. | ||
about | ||
commands | ||
content-management | ||
contribute | ||
functions | ||
getting-started | ||
hosting-and-deployment | ||
hugo-modules | ||
hugo-pipes | ||
maintenance | ||
news | ||
readfiles | ||
showcase | ||
templates | ||
tools | ||
troubleshooting | ||
variables | ||
_index.md | ||
documentation.md |