From b7b6948d5a8f36aaebf90d1a458c1aa7a9f38e62 Mon Sep 17 00:00:00 2001 From: Mitchell Burton Date: Mon, 22 Jan 2024 06:58:35 -0800 Subject: [PATCH] breadcrumbs --- convert.sh | 8 +++++--- css/base.css | 34 ++++++++++++++++++++++++++++++++++ markdown/subpage/non-index.md | 4 ---- 3 files changed, 39 insertions(+), 7 deletions(-) delete mode 100644 markdown/subpage/non-index.md diff --git a/convert.sh b/convert.sh index ba35f29..805446f 100755 --- a/convert.sh +++ b/convert.sh @@ -11,12 +11,14 @@ rm -rf ./_site generate_crumbs() { HTML_PATH="$1" - PARTS=$(echo "$HTML_PATH" | sed -e 's/\(\/index\)\.html$//' | cut -d'/' -f3- | sed -e 's/\// /g') + ROOT="/" + [ -n "$SITE_ROOT" ] && ROOT="$SITE_ROOT" + PARTS=$(echo "$HTML_PATH" | sed -e 's/\(\/index\)\?\.html$//' | cut -d'/' -f3- | sed -e 's/\// /g') echo '