aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-heading.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-05-30 20:50:08 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-05-30 23:22:51 +0200
commitaa7c486e76ec119fa6a73cdeb01789a9ba67aa19 (patch)
treed2db7149fb5d44817f11d839c2306b0eeb644326 /layouts/_default/_markup/render-heading.html
parent1608ade3f4fd949d1b6db687d992945f7d6df5c0 (diff)
Add anchors to headings
Diffstat (limited to 'layouts/_default/_markup/render-heading.html')
-rw-r--r--layouts/_default/_markup/render-heading.html4
1 files changed, 4 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..5439d20
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,4 @@
+<h{{ .Level }} id="{{ .Anchor | safeURL }}">
+ {{ .Text | safeHTML }}
+ <a class="anchor" href="#{{ .Anchor | safeURL }}">#</a>
+</h{{ .Level }}>