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

6 lines
No EOL
291 B
HTML

<h{{.Level}} class="rendered-heading" id="{{.Anchor | safeURL}}">
<span class="rendered-heading__text">{{.Text | safeHTML}}</span>
<a class="rendered-heading__anchor-link" href="#{{.Anchor | safeURL}}">
<span class="rendered-heading__anchor-link__text">[link]</span>
</a>
</h{{.Level}}>