summaryrefslogtreecommitdiff
path: root/themes/orca/layouts/_default/_markup/render-heading.html
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-08-22 08:54:40 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-08-22 08:54:40 -0400
commitd0deda9b496f582374f71bf25dd97b8410387a21 (patch)
tree881986978be30b30635e543218c1cecbc74ac21f /themes/orca/layouts/_default/_markup/render-heading.html
downloadwww-d0deda9b496f582374f71bf25dd97b8410387a21.tar.gz
www-d0deda9b496f582374f71bf25dd97b8410387a21.zip
initial commit
Diffstat (limited to 'themes/orca/layouts/_default/_markup/render-heading.html')
-rw-r--r--themes/orca/layouts/_default/_markup/render-heading.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/orca/layouts/_default/_markup/render-heading.html b/themes/orca/layouts/_default/_markup/render-heading.html
new file mode 100644
index 0000000..d8a820e
--- /dev/null
+++ b/themes/orca/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,6 @@
+<h{{ .Level }} {{ if le .Level 3 }} id="{{ .Anchor | safeURL }}" {{ end }}>
+{{ .Text | safeHTML }}
+{{ if le .Level 3 }}
+ <a href="#{{ .Anchor | safeURL }}">#</a>
+{{ end }}
+</h{{ .Level }}>