diff options
| Commit | 7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8 (patch) | |
|---|---|---|
| Author | 2022-07-04 16:25:38 +0300 | |
| Committer | 2022-07-04 16:25:38 +0300 | |
| Files | bdabb24f5acf549928a84251c2017631c6f342f5 /make-flags.sh | |
| syndamia.com-7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8.tar syndamia.com-7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8.tar.gz syndamia.com-7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8.zip | ||
| Parent | 5ba2d9993102c9fb4bcba9ed28139827d39fe8e8 (diff) | |
Added script for ftags of flags, added gb flag, reworked blog and tutorial tables into definition lists
1 files changed, 17 insertions, 0 deletions
| -rwxr-xr-x | make-flags.sh | 17 |
diff --git a/make-flags.sh b/make-flags.sh new file mode 100755 index 0000000..786671d --- /dev/null +++ b/make-flags.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Adds a way to more simply insert flags into text +# Each flag is represented with an ftag (text that is preceded by &&) + +# Available flags: +# Great Britain - &&gb + +if [ -z "$1" ]; then + echo First parameter must be a path + exit +fi + +for file in $(find "$1" -type f -name "*.html"); do + # Replaces "&&gb" with "<img src="/img/gb.svg" class="unzoomable" alt="ENG" title="ENG">" + sed -i 's/&&gb/<img src="\/img\/gb.svg" class="unzoomable" alt="ENG" title="ENG">/g' "$file" +done |