blog/layouts/_markup/render-heading.html

3 lines
152 B
HTML

<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
<a href="#{{ .Anchor }}">{{ .Text }}</a>
</h{{ .Level }}>