]> git.plutz.net Git - shellwiki/blobdiff - macros/pagelist
include macro
[shellwiki] / macros / pagelist
index e8e9b04ad486aac46e829a3c7597e31b664af61a..e9f5a33e191be7ba9796e2aa8911cdccd6d1b5db 100755 (executable)
@@ -10,7 +10,8 @@ depth="${2:-1}"
 printf '<ul class="pagelist">\n'
   page_glob "$dir" \
   | while read -r glob; do
-    page_children "$glob" "$depth"
+    printf %s\\n "$glob"
+    page_children "$glob" "$((depth - 1))"
   done \
   | while read -r page; do
     case $page in