diff --git a/rivet.sh b/rivet.sh index c97ca66..e7b45aa 100755 --- a/rivet.sh +++ b/rivet.sh @@ -219,12 +219,19 @@ if ! [ "$SKIP_LIST" ]; then mv "$tmpsed" "$lobjlist" grep "$outdir" "$linklist" > "$llinklist" + +# Modify "Pages" header to show the current section + if [ "$indexf" = "$destdir/index.html" ]; then + llinksec=$linksec + else + llinksec="$linksec in this section" + fi tmpfile="$(mktemp)" rm -f "$tmpfile" cat << EOF >> "$tmpfile"
-

$linksec

+

$llinksec

EOF count='0' while IFS="" read -r line; do