From bea3e498ee177c398ad4b4eee621003984afe24a Mon Sep 17 00:00:00 2001 From: moisseev Date: Thu, 4 Apr 2024 10:03:57 +0300 Subject: [PATCH] Do not add ul for root dir --- sitemap1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sitemap1.md b/sitemap1.md index 65e6ff0b6..1c22e8d80 100644 --- a/sitemap1.md +++ b/sitemap1.md @@ -24,7 +24,7 @@ title: Site map {% endfor %} {% for dir in path %} {% unless dir == nil or dir == prev_path[forloop.index0] %} - {% assign levels_match = forloop.index0 %} + {% unless forloop.index0 == 0 %}{% assign levels_match = forloop.index0 %}{% endunless %} {% break %} {% endunless %} {% endfor %}