diff options
author | frosty <passedgoandgot200@disroot.org> | 2025-06-16 23:29:31 -0400 |
---|---|---|
committer | frosty <passedgoandgot200@disroot.org> | 2025-06-16 23:29:31 -0400 |
commit | 862a61c145ad083521f3941c56fd6e914d051a95 (patch) | |
tree | 1b41dc3e850c08eb63d07c7dde577e0f56f53215 /themes/polaris/layouts/_markup/render-heading.html | |
parent | b9b380447b5722b58e21fda0ffaee2fd87e20635 (diff) |
add stuff that rocks, enable table of contents, add og tags, and more
Diffstat (limited to 'themes/polaris/layouts/_markup/render-heading.html')
-rw-r--r-- | themes/polaris/layouts/_markup/render-heading.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/polaris/layouts/_markup/render-heading.html b/themes/polaris/layouts/_markup/render-heading.html new file mode 100644 index 0000000..c4d156c --- /dev/null +++ b/themes/polaris/layouts/_markup/render-heading.html @@ -0,0 +1,4 @@ +<h{{ .Level }} id="{{ .Anchor }}" {{ with .Attributes.class }} class="{{ . }}" {{ end }}> + {{ .Text }} +{{ if and (ge .Level 2) (le .Level 3) }}<a href="#{{ .Anchor }}">#</a>{{ end }} +</h{{ .Level }}> |