#!/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