Hi, all. I’m not a developer but have hacked my way toward a decent website using Netlify’s Kaldi starter (based on Victor Hugo).
I figured out how to add a post table of contents with the following:
<aside>
<h3>Contents</h3>
{{ .TableOfContents }}
</aside>
However, the TOC hyperlinks always go to "homepage_url/#id"
rather than simply "#id"
. In effect, each link takes me home rather than to the appropriate heading farther down.
It seems like a simple change to wherever/however Hugo formats the .TableOfContents output. Can anyone point me to that location? And is it actually the right thing to change?
Thanks in advance!