diff options
Diffstat (limited to 'www/generate/breadcrumb')
| -rwxr-xr-x | www/generate/breadcrumb | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/www/generate/breadcrumb b/www/generate/breadcrumb index 6b9f821..0f7e1f8 100755 --- a/www/generate/breadcrumb +++ b/www/generate/breadcrumb @@ -27,18 +27,20 @@ if (! ~ $subdomain ()) { curi = '' for (e in $elems) { - # special case for stagit - if (~ $subdomain src && ~ $e log.html) { - exit 0 - } + if (!~ $e '.') { + # special case for stagit + if (~ $subdomain src && ~ $e log.html) { + exit 0 + } - # we're done - if (~ $e index.html) { - exit 0 - } + # we're done + if (~ $e index.html) { + exit 0 + } - curi = $curi ^ '/' ^ $e + curi = $curi ^ '/' ^ $e - text ' > ' - plink $curi `$nl{echo $e | sed 's/\.html$//'} + text ' > ' + plink $curi `$nl{echo $e | sed 's/\.html$//'} + } } |