Summary Files Commits Branches @commit @diff @stats
path: root / awk-edits / Group-contents.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/Group-contents.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, 24 deletions
-rw-r--r--awk-edits/Group-contents.awk24
diff --git a/awk-edits/Group-contents.awk b/awk-edits/Group-contents.awk
deleted file mode 100644
index 43fa460..0000000
--- a/awk-edits/Group-contents.awk
+++ /dev/null
@@ -1,24 +0,0 @@
-# .*(blog|slides|teaching|tutorials|misc)/.*/.*html
-#
-# == About ==
-#
-# Some pages contain contents info, comprised of a "Contents" heading (h2) and a
-# (usually ordered) list of anchors to headings in the current page.
-# This script groups that heading and list into a wrapper element with id
-# "contents-container", which can then be handled more specifically.
-#
-# In my case, the contents appear on the right of remaining text.
-
-BEGIN {
- started = 0
-}
-
-/h2 id="contents"/ {
- print "<div id=\"contents-container\">"
- started = 1
-}
-
-started == 1 && /<p>/ {
- print "</div>"
- started = 0
-}