sadium/layouts/_default/_markup/render-heading.html

5 lines
225 B
HTML
Raw Normal View History

2024-01-25 20:37:36 +03:00
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}
2024-06-15 21:21:07 +03:00
{{- if and (ge .Level 1) (le .Level 4) }}{{" " -}}
2024-01-25 20:37:36 +03:00
<a class="header-link" href="#{{ .Anchor | safeURL }}"><span>&#8983</span></a>
{{- end -}}
</h{{ .Level }}>