Files
docker-docs/layouts/partials/heading.html
David Karlsson 599393423f dhi: use attribute for tier, remove badge shortcode from heading
Create a 'tier' attribute for headings and render it semantically

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-12-17 14:07:35 +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 }}>