I don't think anybody is using softlinks inside his blagh directory,
but a solution would be to use `du -a` instead of a recursive
function. This is the function I'm using to generate the left menu at
http://4l77.com/blg/
fn walk {
echo '<ul>'
@{
cd $1
du -a . | sort +1r | awk '
/\.(md|html?|tpl)$/{
sub(/(\/index)?\.(md|html?|tpl)/,"");
dir=substr($2,3);
name=dir;
gsub("_", " ", name);
if(dir != "")
print "<li><a href=\"/'^`{echo $1 | sed
's|.*'^$site^'/||'}^'/" dir "\">› " name "</a></li>";
}'
}
echo '</ul>'
}
It would be easy to arrive to a diplay function similar to yours from here.
I'm sorry for not having any more comments about your code, but my use
of blagh is rather limited (for a post every two months, I could
fairly well be using a static page...)
--
- yiyus || JGL . 4l77.com
--
You received this message because you are subscribed to the Google Groups
"werc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/werc9?hl=en.