sadium/layouts/_default/_markup/render-heading.html
Артём 55c9054af8
All checks were successful
/ site (push) Successful in 0s
Меняю ToC
2024-06-15 21:21:07 +03:00

5 lines
No EOL
225 B
HTML

<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}
{{- if and (ge .Level 1) (le .Level 4) }}{{" " -}}
<a class="header-link" href="#{{ .Anchor | safeURL }}"><span>&#8983</span></a>
{{- end -}}
</h{{ .Level }}>