diff options
Diffstat (limited to 'themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html')
-rw-r--r-- | themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html b/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..f79308a --- /dev/null +++ b/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html @@ -0,0 +1,6 @@ +<h{{ .Level }} id="{{ .Anchor }}"> + {{- if site.Params.Article.HeadingAnchor -}} + <a href="#{{ .Anchor }}" class="header-anchor"></a> + {{- end -}} + {{ .Text | safeHTML }} +</h{{ .Level }}>
\ No newline at end of file |