summaryrefslogtreecommitdiff
path: root/barsup
diff options
context:
space:
mode:
authorLuke Smith <Luke Smith>2022-06-25 10:56:36 -0400
committerLuke Smith <Luke Smith>2022-06-25 10:56:36 -0400
commit7e74a039122aef922d1619e636de3497ffcf7c60 (patch)
tree6029d4f3bd5496acd15e81ad5babb367f8836d60 /barsup
parent967594150f011456cde5965d48cbf0e64f39d31e (diff)
convert to hugo
Diffstat (limited to 'barsup')
-rwxr-xr-xbarsup18
1 files changed, 0 insertions, 18 deletions
diff --git a/barsup b/barsup
deleted file mode 100755
index 71d21d4..0000000
--- a/barsup
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-# Replace existing navs and footers with content of nav and footer files.
-
-navfile="/home/luke/.local/src/landchad/.nav.html"
-footerfile="/home/luke/.local/src/landchad/.footer.html"
-
-files="$(for x in $(find /home/luke/.local/src/landchad -type f -iname '*.html'); do
- echo "$x"
-done)"
-
-escnav="$(sed "s|^\s\+||;s|/|\\\\/|g;s|\"|\\\\\"|g" "$navfile" 2>/dev/null | tr -d '\n')"
-escfooter="$(sed "s|^\s\+||;s|/|\\\\/|g;s|\"|\\\\\"|g" "$footerfile" 2>/dev/null | tr -d '\n')"
-
-sed -s -i "s/<nav>.*<\/nav>/<nav>$escnav<\/nav>/; s/<footer>.*<\/footer>/<footer>$escfooter<\/footer>/" $files
-
-# Multiline:
-# sed -n -s -i "1h; 1!H; \${ g; s/<nav>.*<\/nav>/<nav>\n$escnav\n\t<\/nav>/g; s/<footer>.*<\/footer>/<footer>\n$escfooter\n\t<\/footer>/p }" $files