aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/_markup/render-heading.html
blob: 3df797e7bfc3fc04c77ec6156405875cc8e1292a (plain)
1
2
3
4
5
6
7
<!-- https://discourse.gohugo.io/t/adding-anchor-next-to-headers/1726/24 -->
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
    {{ .Text | safeHTML }}
    <a class="heading-anchor" href="#{{ .Anchor | safeURL }}">
        <i class="fa fa-chain" aria-hidden="true"></i>
    </a>
</h{{ .Level }}>