blog/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html

6 lines
203 B
HTML
Raw Normal View History

2024-11-03 20:08:36 +03:00
<h{{ .Level }} id="{{ .Anchor }}">
{{- if site.Params.Article.HeadingAnchor -}}
<a href="#{{ .Anchor }}" class="header-anchor"></a>
{{- end -}}
{{ .Text | safeHTML }}
</h{{ .Level }}>