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 5fbae8ba941472d0ba0c436abb399e08ee7ac257
parent f657287a837301dac75c7a8d13981b41b5d9f69c
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 15 Jun 2024 10:14:43 +0200

feat: Add rss feed into 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 @@ -168,8 +168,8 @@ find "${1}/${2}/${3}/" -type f -exec sed -E -e ${MAILEXP} -i {} \; INJEXP="s/(>Files<\/a>\ \|)/\1 <a href=\"\/${2}\/${3}\/exports.html\">Exports<\/a> \|/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; -# Add Back-Button and Summary page (within title) -INJEXP="s/(<h1>)(${3})(<\/h1>)/\1<a\ href=\"\/${2}\/\">${2}<\/a>\ \/\ <a\ href=\"\/${2}\/${3}\/index.html\">\2<\/a>\3/" +# Add Back-Button, Summary page and RSS feed (within title) +INJEXP="s/(<h1>)(${3})(<\/h1>)/\1<a\ href=\"\/${2}\/\">${2}<\/a>\ \/\ <a\ href=\"\/${2}\/${3}\/index.html\">\2<\/a> \/\ <a\ href=\"\/${2}\/${3}\/atom.xml\"\ title=\"RSS\">&#128364;<\/a>\3/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # Replace "git clone" href