commit 6f1cefcb8b00eb1624a7482d1105fd3a3f1dfa64
parent b0ffb42d60eae19ad240451dcba1150f369e580c
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sun, 28 Apr 2024 18:44:14 +0200
Inject menu entry for exports
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh
@@ -46,6 +46,10 @@ fi
MAILEXP='s/([a-zA-Z0-9\.]+)\@([a-zA-Z0-9\-]+)\.([a-z]+)/\1\[AT\]\2\[DOT\]\3/g'
find "${1}/${2}/${3}/" -type f -exec sed -E -e ${MAILEXP} -i {} \;
+# Add Exports to menu
+INJEXP="s/(>Log<\/a>)/\1 \| <a href=\"..\/${3}.exp\/\">Exports<\/a> /"
+find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E -e ${INJEXP} -i {} \;
+
# link assets
ln -sf "${1}/assets/style.css" "${1}/${2}/${3}/style.css"
ln -sf "${1}/assets/favicon.png" "${1}/${2}/${3}/favicon.png"