ref: aded4d3b5d13b8c9838afc8fd4d87f62677e4cd7
parent: 75190a8d97bc76603c2b8de5de5b517d15638a95
author: phil9 <[email protected]>
date: Sun Jan 31 12:30:09 EST 2021
show a trailing / for folders
--- a/shithub
+++ b/shithub
@@ -315,7 +315,9 @@
for(f in `$nl{ls}){
url=`$nl{echo -n $f/f.html | urlencode}
fname=`$nl{echo -n $f | htcat}
- echo '<a href="'$url'">'$fname'</a><br/>'
+ echo -n '<a href="'$url'">'$fname
+ if (test -d $f) echo '/'
+ echo '</a><br/>'
}
echo ' </div>
</p>
@@ -359,13 +361,13 @@
}
if not if(test -d $file){
cd $file
- echo ' <pre id="code">'
+ echo ' <div id="code">'
for(f in `$nl{ls}){
url=`$nl{echo -n $f/f.html | urlencode}
fname=`$nl{echo -n $f | htcat}
echo '<a href="'$url'">'$fname'</a>'
}
- echo ' </pre>'
+ echo ' </div>'
}
echo ' </body>
</html>'