Headings
Headings can have anchor links that appear when you hover over them.
You can change what happens when you click the anchor icon in your hugo.toml
file. By default, all options are turned on. If you turn off all options, no anchor icon will show up when you hover.
Copy Anchor Links
Option Set disableAnchorCopy=true
to prevent copying the anchor link when you click the icon.
hugo.
[params]
disableAnchorCopy = true
params:
disableAnchorCopy: true
{
"params": {
"disableAnchorCopy": true
}
}
Scroll to Heading
Option Set disableAnchorScrolling=true
to stop the page from scrolling to the heading when you click the anchor icon.
hugo.
[params]
disableAnchorScrolling = true
params:
disableAnchorScrolling: true
{
"params": {
"disableAnchorScrolling": true
}
}