docs: Create home page with redirect

This commit is contained in:
Elian Doran 2024-07-20 12:40:03 +03:00
parent bfab6b4d5c
commit 5db499cf56
No known key found for this signature in database

View File

@ -15,4 +15,9 @@ wget -rp -e robots=off "$share_url" -P "$output_dir"
# Get rid of the domain in the output folder
mv "$output_dir/$SHARE_HOST"/* "$output_dir/"
rmdir "$output_dir/$SHARE_HOST"
rmdir "$output_dir/$SHARE_HOST"
# Create home page with redirect
index_dest_path="$output_dir/index.html"
cp index.template.html "$index_dest_path"
sed -i "s/{{ROOT_NOTE_ID}}/$ROOT_NOTE_ID/g" "$index_dest_path"