Files
docs/layouts/partials/heading.html
T
2023-08-22 09:41:02 +02:00

13 lines
431 B
HTML

{{ $id := .id | default (anchorize (plainify .text)) }}
<a class="relative -top-16" name="{{ $id }}"></a>
<h{{ .level }}
{{ with .class }}
class="{{ . }}"
{{ end }}
>
<span class="group not-prose">
<a class="text-black dark:text-white no-underline group-hover:underline" href="#{{ $id }}">{{ .text }}</a>
<span class="invisible group-hover:visible material-symbols-rounded">link</span>
</span>
</h{{ .level }}>