diff options
author | frosty <passedgoadngot200@disroot.org> | 2025-09-16 18:18:10 -0400 |
---|---|---|
committer | frosty <passedgoadngot200@disroot.org> | 2025-09-16 18:18:10 -0400 |
commit | 01a2f10cfa100996e18e52f245f0be2baf545a00 (patch) | |
tree | 3bbadf32a6511cb1d26e98f3496e1331f065b91c /layouts/_default/_markup | |
download | www-01a2f10cfa100996e18e52f245f0be2baf545a00.tar.gz www-01a2f10cfa100996e18e52f245f0be2baf545a00.zip |
initial commit
Diffstat (limited to 'layouts/_default/_markup')
-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..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 }}> |