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

6 lines
No EOL
203 B
HTML

<h{{ .Level }} id="{{ .Anchor }}">
{{- if site.Params.Article.HeadingAnchor -}}
<a href="#{{ .Anchor }}" class="header-anchor"></a>
{{- end -}}
{{ .Text | safeHTML }}
</h{{ .Level }}>