aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/_markup/render-heading.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
index 3df797e..3ebfeb6 100644
--- a/layouts/_default/_markup/render-heading.html
+++ b/layouts/_default/_markup/render-heading.html
@@ -1,5 +1,5 @@
<!-- https://discourse.gohugo.io/t/adding-anchor-next-to-headers/1726/24 -->
-<h{{ .Level }} id="{{ .Anchor | safeURL }}">
+<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>