<!-- https://discourse.gohugo.io/t/adding-anchor-next-to-headers/1726/24 -->
<h{{ .Level }} id="{{ .Anchor | safeURL }}"{{ with .Attributes.class }} class="{{ . }}"{{ end }}>
    {{ .Text | safeHTML }}
    <a class="heading-anchor" href="#{{ .Anchor | safeURL }}">
        <i class="fa fa-chain" aria-hidden="true"></i>
    </a>
</h{{ .Level }}>