diff --git a/rivet.sh b/rivet.sh index 56cfd2d..3eed5fb 100755 --- a/rivet.sh +++ b/rivet.sh @@ -65,6 +65,8 @@ fi src="$1" srcdir=${src%%\/} unset src +headerfile=$srcdir/_header.html +footerfile=$srcdir/_footer.html # Check if index.md is present if ! [ -e "$srcdir"/index.md ]; then @@ -93,9 +95,6 @@ url="$(echo "$2" | sed -e 's/\/$//' | sed -e 's/[]\/$*.^[]/\\&/g')" -headerfile=$srcdir/_header.html -footerfile=$srcdir/_footer.html - if [ "$PRINT_HELP" ]; then usage fi @@ -153,7 +152,7 @@ if ! [ "$SKIP_SITEMAP" ] || ! [ "$SKIP_LIST" ]; then rm -f "$tmpfile" cat << EOF >> "$tmpfile"