summaryrefslogtreecommitdiff
path: root/www/generate/breadcrumb
diff options
context:
space:
mode:
authorHayden Hamilton <hayden@hhvn.uk>2026-09-14 19:59:11 +0100
committerHayden Hamilton <hayden@hhvn.uk>2026-09-14 19:59:11 +0100
commit06adabffe759eafcd3932e98b0395dcbd95bc16c (patch)
treefee8edf0150b049849f870b08495b26045dea272 /www/generate/breadcrumb
parentda348e3d7b56df2bf5bb243405d7a44eda893c79 (diff)
Switched to cgit -> remove stagit scripts
Diffstat (limited to 'www/generate/breadcrumb')
-rwxr-xr-xwww/generate/breadcrumb46
1 files changed, 0 insertions, 46 deletions
diff --git a/www/generate/breadcrumb b/www/generate/breadcrumb
deleted file mode 100755
index 0f7e1f8..0000000
--- a/www/generate/breadcrumb
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/rc
-
-uri = $1 # eg, '/hbspbar/log.html'
-domain = $2 # eg, hhvn.uk
-subdomain = $3 # eg, src
-elems = `('/' $nl){echo $uri}
-
-if (~ $domain ()) {
- domain = `hostname
-}
-
-fn plink {
- printf '<a href="%s">%s</a>' $1 $2
-}
-
-fn text {
- printf '%s' $1
-}
-
-if (! ~ $subdomain ()) {
- plink '/' $subdomain
- text '.'
- plink 'https://'^$domain $domain
-} else {
- plink '/' $domain
-}
-
-curi = ''
-for (e in $elems) {
- if (!~ $e '.') {
- # special case for stagit
- if (~ $subdomain src && ~ $e log.html) {
- exit 0
- }
-
- # we're done
- if (~ $e index.html) {
- exit 0
- }
-
- curi = $curi ^ '/' ^ $e
-
- text ' &gt; '
- plink $curi `$nl{echo $e | sed 's/\.html$//'}
- }
-}