From 0e5eccfb37fb8ce26c50064c2ddf04f893694207 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 11 Nov 2022 14:31:12 -0800 Subject: added rss feed to main page --- scripts/addback.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/addback.sh (limited to 'scripts') diff --git a/scripts/addback.sh b/scripts/addback.sh new file mode 100755 index 0000000..481733f --- /dev/null +++ b/scripts/addback.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# A simple extension to add a back button to every page that needs one. + +PROJECT_ROOT="./build/website" +if [ "$(realpath "$1")" = "$(realpath "$PROJECT_ROOT/index.html")" ]; then + printf ' ' + exit 0 +fi + +# +if [ "$(basename "$1")" = 'index.html' ]; +then + printf 'Back' +else + printf 'Back' +fi -- cgit