summaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-heading.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/_markup/render-heading.html')
-rw-r--r--layouts/_default/_markup/render-heading.html6
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..7035d68
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,6 @@
+<h{{ .Level }} {{ if le .Level 3 }} id="{{ .Anchor | safeURL }}" {{ end }}>
+{{ if le .Level 3 }}
+ <a href="#{{ .Anchor | safeURL }}">#</a>
+{{ end }}
+{{ .Text | safeHTML }}
+</h{{ .Level }}>