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 61731788e6e8313f698aa11e0a3f2e2d502c43c6
parent 5e6a9ec9d5515775fe3dc78c23f63434b8436dd4
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Mon, 10 Jun 2024 20:33:31 +0200

feat: move back-button within title

Diffstat:
Mbin/git_update_repo_html.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -124,8 +124,8 @@ find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; INJEXP="s/^(<a\ href=\"(\.{0,2}\/)*log.html\">)/<a\ href=\"\/${2}\/${3}\/index.html\">Summary<\/a>\ \| \1/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; -# Add Back-Button (before Summary) -INJEXP="s/^(<a\ href=\"\/${2}\/${3}\/index.html\">)/<a\ href=\"\/${2}\/\"><strong>All Repos<\/strong><\/a>\ \| \1/" +# Add Back-Button (within title) +INJEXP="s/(<h1>)(${3})(<\/h1>)/\1<a\ href=\"\/${2}\/\">${2}<\/a>\ \/\ \2\3/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # Replace "git clone" href