src.hhvn.uk > hhvn.uk-scripts > commit > 627411f75fe98eb44cf286ca6c31c11de807c6c2

scripts that power hhvn.uk
Log | Files | Refs | README

commit 627411f75fe98eb44cf286ca6c31c11de807c6c2
parent 9956f441fc3f722825e21fb363f00869817401b3
Author: Hayden Hamilton <hayden@hhvn.uk>
Date:   Sun,  7 Jun 2026 17:12:59 +0100

stagit script: symlink style.css for each repo + remove owner col

Diffstat:
Mwww/generate/src/stagit | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/www/generate/src/stagit b/www/generate/src/stagit @@ -8,7 +8,10 @@ if (~ $domain ()) { gitdir = /var/git wwwdir = /var/www/htdocs/src.$domain -stagit-index $gitdir/* > $wwwdir/index.html +stagit-index $gitdir/* | \ + sed 's/<td><b>Owner<\/b><\/td>//' | \ + sed 's/<td><\/td>//' \ + > $wwwdir/index.html for (repo in $gitdir/*) { base = `{basename $repo} @@ -20,4 +23,7 @@ for (repo in $gitdir/*) { if (!test -e index.html) { ln -s log.html index.html } + if (!test -e style.css) { + ln -s ../style.css style.css + } }