Files
docker-docs/layouts/_partials/heading.html
David Karlsson 90e2cb52fa chore: migrate to Hugo v0.146.0 new template lookup system
- layouts/partials/ → layouts/_partials/
- layouts/shortcodes/ → layouts/_shortcodes/
- layouts/_default/_markup/ → layouts/_markup/
- layouts/_default/*.html → layouts/*.html (flatten _default/)
- layouts/index.html → layouts/home.html
- layouts/index.*.json/txt → layouts/home.*.json/txt
- layouts/_default/index.llms.txt → layouts/home.llms.txt
- layouts/tag/ → layouts/tags/ (match /tags/ URL path)
2026-02-19 16:09:15 +01:00

10 lines
385 B
HTML

{{ $id := .id | default (anchorize (plainify .text)) }}
<h{{ .level }} class="{{ .class }} scroll-mt-20 flex items-center gap-2" id="{{ $id }}">
<a class="text-black dark:text-white no-underline hover:underline" href="#{{ $id }}">
{{ .text }}
</a>
{{- with .tier }}
{{- partial "components/badge.html" (dict "color" "blue" "content" . ) -}}
{{- end }}
</h{{ .level }}>