8 lines
400 B
HTML
8 lines
400 B
HTML
<h{{ .Level }} id="{{ .Anchor }}" {{- range $key, $value := .Attributes }} {{- printf " %s=%v" $key $value | safeHTMLAttr }}{{- end }}>
|
|
{{ if and (ne .Level 1) (not (index .Attributes "data-toc-skip")) }}
|
|
<span class="me-2">{{- .Text -}}</span>
|
|
<a href="#{{ .Anchor }}" class="anchor text-muted"><i class="fas fa-hashtag"></i></a>
|
|
{{ else }}
|
|
{{- .Text -}}
|
|
{{ end }}
|
|
</h{{ .Level }}> |