MoncoForge:

stagit-scripts

scripts to aid in the management of stagit sites
git clone https://moncoforge.com/stagit-scripts
Download | Log | Files | Refs | README

commit d8564b1849fe6752cb50d36d43b8898c939ce487
parent 43dca1c46feaf3b5e1ac0a22c992a1a97f613fd3
Author: MoncoForge <git@moncoforge.com>
Date:   Sat, 14 Nov 2026 15:22:31 -0800

reverted home url, added index tagline

Diffstat:
Mpost-receive-stagit | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/post-receive-stagit b/post-receive-stagit @@ -6,6 +6,7 @@ name="$(basename $repo .git)" baseurl="ENTER-YOUR-WEBSITE-DOMAIN" sitetitle="ENTER-YOUR-WEBSITE-NAME" indextitle="ENTER-INDEX-PAGE-TITLE" +indextagline="ENTER-INDEX-PAGE-TAG-LINE" basedir="ENTER-YOUR-WEBSITE-DIRECTORY" pubrepodir="ENTER-YOUR-GIT-DIRECTORY" htdir="$basedir/$name" @@ -59,7 +60,7 @@ addhomelink() { cd "$htdir" printf '%s\n' \ "/<h1>" \ - "s|<h1>|<h1><a href=\"../\">$indextitle:</a><\/h1> <h1> |" . w \ + "s|<h1>|<h1><a href=\"$baseurl\">$indextitle:</a><\/h1> <h1> |" . w \ | ed -s "$1" > /dev/null } @@ -76,9 +77,12 @@ newsitetitle() { } changeindextitlestyle() { + if [ -n "$indextagline" ]; then + tagline="<span class=\"desc\">$indextagline</span>" + fi printf '%s\n' \ "/<td><span class=\"desc\">Repositories" c \ - "<td><h1>$indextitle</h1></td></tr><tr><td></td><td>" . w \ + "<td><h1>$indextitle</h1>$tagline</td></tr><tr><td></td><td>" . w \ | ed -s "$basedir/index.html" > /dev/null }