docs: Create home page with redirect

pull/228/head
Elian Doran 2024-07-20 12:40:03 +07:00
parent bfab6b4d5c
commit 5db499cf56
No known key found for this signature in database
1 changed files with 6 additions and 1 deletions

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