blog/themes/chosto/layouts/_default/_markup/render-heading.html

2 lines
182 B
HTML

{{/* Overwrite default title rendering to add anchor */}}
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}"></a></h{{ .Level }}>