From dc2fd65e6bfeaa2c475d5042f64263ac9427c22f Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Tue, 8 Nov 2022 10:28:58 -0800 Subject: completely changed backend --- finalize_build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 finalize_build.sh (limited to 'finalize_build.sh') diff --git a/finalize_build.sh b/finalize_build.sh new file mode 100755 index 0000000..831acff --- /dev/null +++ b/finalize_build.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +ROOT_DIR="./build/website/" +# replace placeholder tags with stuff +for i in $(find "$ROOT_DIR" -type f -name '*.html'); do + if [ "$(basename "$i")" = 'index.html' ]; + then + sed -i -e 's||\| Back|g' "$i" + elif [ "$i" == "*.html" ]; then + sed -i -e 's||\| Back|g' "$i" + fi +done; + +sed -i -e 's|\| Back||g' "$ROOT_DIR/index.html" -- cgit