19 lines
903 B
Markdown
Raw Normal View History

2024-09-29 23:48:56 +02:00
+++
description = "How to configure heading anchors"
options = ["disableAnchorCopy", "disableAnchorScrolling"]
2024-09-29 23:48:56 +02:00
title = "Headings"
2024-10-07 00:10:16 +02:00
weight = 2
2024-09-29 23:48:56 +02:00
+++
Each heading may have an anchor link that is displayed when the heading is hovered.
2024-10-06 20:37:18 +02:00
The behavior what should happen if the anchor icon is clicked is configurable in your `hugo.toml`. By default all of the following options are activated. If you deactivate all options, no anchor icon will be shown on hover.
2024-09-29 23:48:56 +02:00
## Copy Anchor Links to Clipboard
2024-10-06 20:37:18 +02:00
{{% badge style="cyan" icon="gears" title=" " %}}Option{{% /badge %}} If you set `disableAnchorCopy=true`, no anchor link will be copied to the clipboard when the anchor icon is pressed.
2024-09-29 23:48:56 +02:00
## Scroll to Heading
2024-10-06 20:37:18 +02:00
{{% badge style="cyan" icon="gears" title=" " %}}Option{{% /badge %}} If you set `disableAnchorScrolling=true`, the page will not scroll to the beginning of the heading when the anchor icon is clicked.