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 b95a4f403e6b1fed19d6c03a67bc9ca0b2945d27
parent 038d5e0fd45b09b9eba8efbbd9213e2938f0ed18
Author: MoncoForge <git@moncoforge.com>
Date:   Sat, 14 Nov 2026 22:51:48 -0800

change readme link to repo index

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

diff --git a/post-receive-stagit b/post-receive-stagit @@ -36,6 +36,13 @@ cpindexfile() { w q \ | ed -s "$htdir/index.html" > /dev/null } +# this just redirects nav readme to repo index, probably a waste of time. +readmelink() { + printf '%s\n' \ + "g/>README<\/a>/s|href=\"[^\"]*README\.md\.html\"|href=\"$baseurl/$name/\"|" \ + w q \ + | ed -s "$1" > /dev/null +} cpstylefiles() { cp $filesdir/favicon.png "$1" @@ -104,6 +111,7 @@ mkpage() { for f in $(find "$htdir" -name "*.html"); do adddownloadbutton $f addhomelink $f + readmelink $f addbottombar $f done cpindexfile