Pages list for index files in subdirectories #2

Merged
alema merged 3 commits from EmaMaker/rivet:master into master 2023-05-18 11:05:33 +02:00
Showing only changes of commit 4536162c42 - Show all commits

View File

@ -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