Skip to content

Commit

Permalink
Do not add ul for root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
moisseev committed Apr 4, 2024
1 parent 653afab commit 7ce3281
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sitemap1.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ title: Site map
{% for num in (1..levels_back) %}
</ul>
{% endfor %}
{% for dir in path offset:levels_match %}
<ul>{{ dir }}
{% endfor %}
{% if levels_match > 0 %}
{% for dir in path offset:levels_match %}
<ul>{{ dir }}
{% endfor %}
{% else %}
{{ dir }}
{% endif %}
{{ page.dir }} back:{{ levels_back }}, match:{{ levels_match }}
{% assign prev_page_dir = page.dir %}
{% endunless %}
Expand Down

0 comments on commit 7ce3281

Please sign in to comment.