Summary Files Commits Branches @commit @diff @stats
path: root / awk-edits / Icons.awk
diff options
context:
space:
mode:
Commit010597ad71b3bc48784cb9a13b3e0fc8dccc69cd (patch)
Author
 Kamen Mladenov <kamen@syndamia.com>
2024-10-06 07:59:36 +0000
Committer
 Kamen Mladenov <kamen@syndamia.com>
2024-10-06 07:59:36 +0000
Files784604f5818679987f940285077cd8e0460a6488 /awk-edits/Icons.awk
syndamia.com-010597ad71b3bc48784cb9a13b3e0fc8dccc69cd.tar
syndamia.com-010597ad71b3bc48784cb9a13b3e0fc8dccc69cd.tar.gz
syndamia.com-010597ad71b3bc48784cb9a13b3e0fc8dccc69cd.zip
Parent6fe00c6ec76028fc055084a3398004fbbefac0be (diff)
Parentc027ddea2e1d6ed69a012edf47d3b39e25b6c9d5 (diff)
Merge branch 'master' into 'blog/black-hole-shader'
# Conflicts: # src/blog/index.md
1 files changed, 0 insertions, 30 deletions
-rw-r--r--awk-edits/Icons.awk30
diff --git a/awk-edits/Icons.awk b/awk-edits/Icons.awk
deleted file mode 100644
index ae780bd..0000000
--- a/awk-edits/Icons.awk
+++ /dev/null
@@ -1,30 +0,0 @@
-# .*html
-#
-# == About ==
-#
-# A collection of ftags that generate an image HTML tag, containing the specified
-# thing. This is done, because these tags need to have specific classes, which is
-# supported in Markdown, but is less flexible and more tedious.
-#
-# -- Placement/Flow --
-#
-# They can reside absolutely anywhere in text.
-
-function flagSub(name, alt) {
- gsub("&#38;&#38;" name,
- "<img src=\"/img/" name ".svg\" class=\"flag unzoomable svg\" alt=\"" name "\" height=18>")
-}
-
-/&#38;&#38;gb/ { flagSub("gb", "ENG") }
-/&#38;&#38;bg/ { flagSub("bg", "BGN") }
-
-function articleIconSub(name, filename) {
- sub("p>&#38;&#38;" name,
- "p class=\"special-par " name "-par\">\\&#38;\\&#38;" name)
- gsub("&#38;&#38;" name,
- "<img src=\"/img/" filename "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">")
-}
-
-/&#38;&#38;question/ { articleIconSub("question", "dialog-question.png") }
-/&#38;&#38;warn/ { articleIconSub("warn", "dialog-warning.png") }
-/&#38;&#38;important/ { articleIconSub("important", "dialog-important.png") }