bunteshaus.de/themes/buha/layouts/_default.old/_markup/render-heading.html

8 lines
254 B
HTML
Raw Normal View History

2022-04-08 21:31:19 +02:00
{{ $url := (printf "%s#%s" .Page.Permalink .Anchor) | safeURL }}
2022-04-08 21:17:37 +02:00
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
2022-04-08 21:35:01 +02:00
<a class="heading-anchor" href="{{ $url }}">
{{ .Text | safeHTML }}
2022-04-08 21:17:37 +02:00
</a>
</h{{ .Level }}>