Gregory Trolliet
e4a2d0b68c
Add an anchor for each title, display a '#' at left of the titles and make them clickable links
7 lines
191 B
HTML
7 lines
191 B
HTML
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
|
|
<a class="anchor" href="#{{ .Anchor | safeURL }}">
|
|
#
|
|
<!-- {{ strings.Repeat .Level "#" }} -->
|
|
</a>
|
|
{{ .Text | safeHTML }}
|
|
</h{{ .Level }}>
|