| 1 |
{{/* gotmplfmt-ignore-all */ -}} |
| 2 |
|
| 3 |
{{/* |
| 4 |
Renders a list of light mode Chroma syntax highlighting styles with links to |
| 5 |
their dark mode counterparts. |
| 6 |
|
| 7 |
@example {{% syntax-highlighting-styles-light-with-counterpart %}} |
| 8 |
*/}} |
| 9 |
|
| 10 |
Light mode style|Dark mode counterpart{{/* Do not indent. */}} |
| 11 |
:--|:--{{/* Do not indent. */}} |
| 12 |
{{- with hugo.Data.docs.chroma.styles }} |
| 13 |
{{- $styles := where . "mode" "light" }} |
| 14 |
{{- $styles := where $styles "counterpart" "ne" "" }} |
| 15 |
{{- range $styles }} |
| 16 |
[{{ .name }}](#{{ .name }})|[{{ .counterpart }}](#{{ .counterpart }}){{/* Do not indent. */}} |
| 17 |
{{- end }} |
| 18 |
{{- end }} |