blog/themes/stack/layouts/_default/_markup/render-heading.html
2025-03-26 15:32:12 +08:00

6 lines
203 B
HTML

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