about summary refs log tree commit diff
path: root/layouts/_default/_markup/render-heading.html
blob: 73f5c26e699b422bee35d7c7b148af82835f19fc (plain) (blame)
1
2
3
4
5
6
7
{{ $id := .Anchor | safeURL }}
<h{{ .Level }} id="{{ $id }}">
  <span class="decorative" aria-hidden="true"></span>
  <a class="heading-anchor" href="#{{ $id }}">
    {{ .Text | safeHTML }}
  </a>
</h{{ .Level }}>