Summary Files Commits Branches @commit @diff @stats
path: root / awk-edits / Heading-anchors.awk
diff options
context:
space:
mode:
Commit0fbac293a5b3ab2e1360d8dc2743c1ae71bc128f (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-08-18 19:02:23 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-08-18 19:02:23 +0300
Files13c6679e365a6f5fb8928b82b176017d85dee1db /awk-edits/Heading-anchors.awk
syndamia.com-0fbac293a5b3ab2e1360d8dc2743c1ae71bc128f.tar
syndamia.com-0fbac293a5b3ab2e1360d8dc2743c1ae71bc128f.tar.gz
syndamia.com-0fbac293a5b3ab2e1360d8dc2743c1ae71bc128f.zip
Parent6f20ac5169469d42f5c945e3de01b297dc028c02 (diff)
chore: Remove outdated files
1 files changed, 0 insertions, 16 deletions
-rw-r--r--awk-edits/Heading-anchors.awk16
diff --git a/awk-edits/Heading-anchors.awk b/awk-edits/Heading-anchors.awk
deleted file mode 100644
index 7d4edf8..0000000
--- a/awk-edits/Heading-anchors.awk
+++ /dev/null
@@ -1,16 +0,0 @@
-# .*html
-#
-# == About ==
-#
-# ssg generates an id for every heading. That's why after every heading there
-# can be a hyperlink to itself. However, because of the current styling, such a
-# hyperlink is required (except for h1).
-
-/[ \t]*<h[23456]/ {
- if (match($0, /<h2 id="contents"/) == 0) {
- match($0, /<h./)
- gap = "<div class=\"gap" ((substr($0, RSTART + 2, 1) == 2) ? "" : "-small") "\"></div>" ORS
- }
- match($0, /id="[^"]*"/)
- $0 = gap $0 ORS "<a class=\"h-anchor\" href=\"#" substr($0, RSTART + 4, RLENGTH - 5) "\" aria-hidden=\"true\">#</a>"
-}