#!/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
gsed -i -e 's||\| Back|g' "$i"
else
gsed -i -e 's||\| Back|g' "$i"
fi
done;
gsed -i -e 's|\| Back||g' "$ROOT_DIR/index.html"