aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-heading.html
diff options
context:
space:
mode:
authorAriel Costas <94913521+arielcostas@users.noreply.github.com>2023-11-23 23:24:28 +0100
committerAriel Costas <94913521+arielcostas@users.noreply.github.com>2023-11-23 23:24:28 +0100
commitdca685c79b587d17e13c5da51ef67aa2e71b891c (patch)
treee826ad032cce0bebeeeb20859600de8e2e213cad /layouts/_default/_markup/render-heading.html
Super basic start
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..6023eb1
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,4 @@
+<h{{ .Level }} id="{{ .Anchor | safeURL }}">
+ <a class="anchor" href="#{{ .Anchor | safeURL }}">#</a>
+ {{ .Text | safeHTML }}
+</h{{ .Level }}>