mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
docs: Create home page with redirect
This commit is contained in:
parent
bfab6b4d5c
commit
5db499cf56
@ -15,4 +15,9 @@ wget -rp -e robots=off "$share_url" -P "$output_dir"
|
|||||||
|
|
||||||
# Get rid of the domain in the output folder
|
# Get rid of the domain in the output folder
|
||||||
mv "$output_dir/$SHARE_HOST"/* "$output_dir/"
|
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"
|
Loading…
x
Reference in New Issue
Block a user