sadium/layouts/_default/_markup/render-heading.html
Артём 7bd72e7dbb
All checks were successful
/ site (push) Successful in 0s
Кое-что я не учёл
2024-06-15 22:45:35 +03:00

5 lines
No EOL
225 B
HTML

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