Auto commit 2025-02-28 13:38
authorNiki Roo <niki@nikiroo.be>
Fri, 28 Feb 2025 12:38:58 +0000 (13:38 +0100)
committerNiki Roo <niki@nikiroo.be>
Fri, 28 Feb 2025 12:38:58 +0000 (13:38 +0100)
index.html
update-index.sh

index 21ba77dd9d6ba47fe5310997466b78e2ed90f154..27739dae49cdbcd0eda34559fd654335fc84e62e 100644 (file)
 <li><a href="/History/Ancient%20Rome/Waking%20up">Waking up</a></li>
 </ul>
 </li>
+</ul>
+</li>
 <li>Tech:<ul>
 <li><a href="/Tech/dosbox">DosBox</a></li>
 <li><a href="/Tech/color-theme">Dark-Olycmpic</a></li>
 </ul>
 </li>
 </ul>
-</li>
-</ul>
 
 
 
index 39c8aea143edb45aa5838732c8a8b68f36a8a68d..43edf7284f918e347a63e54a58f4b37e7f8acf4b 100644 (file)
@@ -23,7 +23,9 @@ work() {
                        pre="    $pre"
                fi
        elif [ $cur_lvl -lt $lvl ]; then
-               pre=$(echo "$pre" | cut -c5-)
+               for i in $(seq 1 $((lvl - cur_lvl)) ); do
+                       pre=$(echo "$pre" | cut -c5-)
+               done
        fi
        
        if [ "$ln" = "" ]; then