local curdepth=${#${(s:/:)1}}
(( curdepth = curdepth + 1 ))
for p (${(oi)${(k)pages[(I)$1*]}}) {
- [[ $p =~ "/Index$" ]] && continue
+ [[ ( $p =~ "/Index$" ) || ( $p = "Index" ) ]] && continue
case ${#${(As:/:)p}} in
($curdepth) _links=($p $_links) ;;
( $(( $curdepth + 1 )) ) cats=(${1}${${p#$1}%%/*} $cats) ;;