aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/_markup/render-heading.html
blob: 7d1e0ac29a51762a6e994b21729ab6053f4d29a6 (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 }}"{{ with .Attributes.class }} class="{{ . }}"{{ end }}>
    {{ .Text | safeHTML }}
    <a class="" href="#{{ .Anchor | safeURL }}">
        <i class="fa fa-chain" aria-hidden="true"></i>
    </a>
</h{{ .Level }}>