annotated
A code block followed by a numbered annotation list.
annotated renders a code block with a numbered annotation list beneath it in a <figcaption>. Split code from notes with <!-- annotations --> — the ordered list becomes the caption.
[outputs]
home = ["html", "rss", "searchindex"]
[markup.highlight]
noClasses = false
searchindexemits/index.json, the data source for the search modal. Hugo never mergesoutputsfrom a theme — declare it yourself.- Class-based highlighting lets the theme’s light/dark code stylesheets apply; the default inline styles would ignore the theme toggle.
Source
{{< annotated >}}
```toml
noClasses = false
```
<!-- annotations -->
1. The note for this code.
2. Another note.
{{< /annotated >}}