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 '