do not prepend full url to linklist

that breaks links when browsing locally and when https is not availeble or
vice-versa
This commit is contained in:
Alessandro Mauri 2021-07-08 18:27:58 +02:00
parent a5e0be8a3f
commit c49758a5c5

View File

@ -183,7 +183,7 @@ sed -i -e 's/\.md$/\.html/' "$objlist"
# Create a list that contains the links to all html files
linklist="$(mktemp)"
cp -f "$objlist" "$linklist"
sed -i -e "s/^$destdir//" -e "s/^/$prefix:\/\/$domain/" "$linklist"
sed -i -e "s/^$destdir//" "$linklist"
# Insert metadata into <head>
if ! [ "$SKIP_META" ]; then