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

6 lines
203 B
HTML
Raw Normal View History

2024-07-31 17:10:56 +08:00
<h{{ .Level }} id="{{ .Anchor }}">
{{- if site.Params.Article.HeadingAnchor -}}
<a href="#{{ .Anchor }}" class="header-anchor"></a>
{{- end -}}
{{ .Text | safeHTML }}
</h{{ .Level }}>