bcarlin.net/layouts/_markup/render-heading.html

6 lines
250 B
HTML

<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
{{ .Text }}
<a href="#{{ .Anchor }}">
{{- partial "icon.html" (dict "icon" "links-line" "label" (T "permalink_section")) -}}
</a>
</h{{ .Level }}>