summaryrefslogtreecommitdiff
path: root/layouts/_default/_markup
diff options
context:
space:
mode:
authorFrancesco Tomaselli <tomaselli.fr@gmail.com>2024-11-18 22:17:01 +0100
committerGitHub <noreply@github.com>2024-11-18 22:17:01 +0100
commited6bfa7c143ed665ebedacce9ac79c1c8a5657b7 (patch)
treeda571e68a5f998572ff15199de2fc67b0bdb8752 /layouts/_default/_markup
parentbd2e58d4b89d5f641af339636f6d2c78210fa1dd (diff)
parent047cecf5e03e27c57026b4c7a8d50a5e0bfc6c3c (diff)
Merge pull request #49 from runofthemillgeek/feat/heading-anchors
Add article heading anchors
Diffstat (limited to 'layouts/_default/_markup')
-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..44430d6
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,4 @@
+<h{{ .Level }} class="heading" id="{{ .Anchor }}">
+ {{ .Text }}
+ <a href="#{{ .Anchor }}">#</a>
+</h{{ .Level }}>