diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/_markup/render-heading.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..bf2eb5b --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1,6 @@ +{{ $id := .Anchor | safeURL }} +<h{{ .Level }} id="{{ $id }}"> +<a class="heading-anchor" href="#{{ $id }}"> + {{ .Text | safeHTML }} +</a> +</h{{ .Level }}> |