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 74ee1984e0fd895f6a6241b14860ef66e7884697
parent 7ce753af74c2dcfe0fe0d54edddd68f7da61a383
Author: MoncoForge <git@moncoforge.com>
Date:   Sat, 14 Nov 2026 14:38:38 -0800

added home link and font copy

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

diff --git a/post-receive-stagit b/post-receive-stagit @@ -36,6 +36,7 @@ cpstylefiles() { cp $filesdir/favicon.png "$1" cp $filesdir/logo.png "$1" cp $filesdir/style.css "$1" + cp -r $filesdir/fonts "$1" } formatreadme() { @@ -54,6 +55,14 @@ adddownloadbutton() { | ed -s "$1" > /dev/null } +addhomelink() { + cd "$htdir" + printf '%s\n' \ + "/<h1>" \ + "s|<h1>|<h1><a href=\"$baseurl\">$indextitle:</a><\/h1> <h1> |" . w \ + | ed -s "$1" > /dev/null +} + addbottombar() { printf '%s\n' \ "/<\/body>" i "$(cat $filesdir/bottom.html)" . w \ @@ -87,6 +96,7 @@ mkpage() { [ -e $htdir/file/README.md ] && formatreadme for f in $(find "$htdir" -name "*.html"); do adddownloadbutton $f + addhomelink $f addbottombar $f done mkindex