]> Sergey Matveev's repositories - zk.zsh.git/blobdiff - zk.zsh
Do not list Index itself
[zk.zsh.git] / zk.zsh
diff --git a/zk.zsh b/zk.zsh
index a4984cc0fa3731550e40388b537bc812fb762dc4..2a5d00ababb74f36f9d4ecbff4052c5ece39ef27 100755 (executable)
--- a/zk.zsh
+++ b/zk.zsh
@@ -152,7 +152,7 @@ genIndex() {
     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) ;;