"Pages in this section" instead of "Pages" in subdirectories index file list
This commit is contained in:
parent
5538ba5c59
commit
4536162c42
9
rivet.sh
9
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"
|
||||
<div id="map">
|
||||
<h2 id="Pages">$linksec</h2>
|
||||
<h2 id="Pages">$llinksec</h2>
|
||||
EOF
|
||||
count='0'
|
||||
while IFS="" read -r line; do
|
||||
|
Loading…
Reference in New Issue
Block a user