"Pages in this section" instead of "Pages" in subdirectories index file list

pull/2/head
emamaker 2 years ago
parent 5538ba5c59
commit 4536162c42
  1. 9
      rivet.sh

@ -220,11 +220,18 @@ if ! [ "$SKIP_LIST" ]; then
grep "$outdir" "$linklist" > "$llinklist" 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)" tmpfile="$(mktemp)"
rm -f "$tmpfile" rm -f "$tmpfile"
cat << EOF >> "$tmpfile" cat << EOF >> "$tmpfile"
<div id="map"> <div id="map">
<h2 id="Pages">$linksec</h2> <h2 id="Pages">$llinksec</h2>
EOF EOF
count='0' count='0'
while IFS="" read -r line; do while IFS="" read -r line; do

Loading…
Cancel
Save