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
What the Hugo TableOfContents var produces is two nested anchor tags:
<a href="#header-as-a-linkhttpswwwcncfio"><a href="https://www.cncf.io">Header as a link</a></a>
So the bug is in Hugo itself.
I wonder, however, why we encourage having headers which are also links? I don't see this as a useful content style since headings are usually used to introduce content directly below them, not link out to some other location. Perhaps we just leave the "bug" for now and remove "headings as a link" from our example site?
When a header is a link and is then in the Table of Contents shortcode the link is shown in the TOC instead of the anchor to it.
The text was updated successfully, but these errors were encountered: