pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit 81075e15b81e17b32fa4da7c5c2bc463f684338f
parent b0a231229bb240a8de62b6441cbfbe38cc63b1ec
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Thu,  6 Jun 2024 22:08:21 +0200

implement Activity Module

Diffstat:
Mbin/git_update_index_html.sh | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/bin/git_update_index_html.sh b/bin/git_update_index_html.sh @@ -35,3 +35,16 @@ ln -sf "${1}/assets/style.css" "${1}/${2}/style.css" ln -sf "${1}/assets/favicon.png" "${1}/${2}/favicon.png" ln -sf "${1}/assets/favicon.png" "${1}/${2}/logo.png" +# Modules ---------------------------------------------------------------------- + +# Activity module +if [ -f "${1}/bin/activity.sh" ]; then + + echo "Executing Activity Module" + + ACTIVITY_HTML=`${1}/bin/activity.sh $REPOS` + + sed "/<div id=\"content\">/a${ACTIVITY_HTML}" \ + -i "${1}/${2}/index.html" + +fi