trwnh.com/unified.test.hugo/layouts/_default/_markup/render-heading.html

6 lines
362 B
HTML
Raw Normal View History

<h{{.Level}} class="rendered-heading" id="{{.Anchor | safeURL}}">{{- /* chomp whitespace */ -}}
<span class="rendered-heading__text">{{.Text | safeHTML}}</span>{{- /* chomp whitespace */ -}}
<a class="rendered-heading__anchor-link" href="#{{.Anchor | safeURL}}" aria-hidden="true">{{- /* chomp whitespace */ -}}
</a>{{- /* chomp whitespace */ -}}
</h{{.Level}}>