Skip to content

Commit

Permalink
try to fix page tree
Browse files Browse the repository at this point in the history
  • Loading branch information
justalfred committed Nov 10, 2023
1 parent 1410389 commit 75daf63
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,22 @@ <h2><a href="{{ "/" | relative_url }}">BitCurator Environment</a></h2>
{% assign suffix = item.name | slice: -9, 6 %}
{% capture item_anchor %}<a href="{{ item.url | relative_url }}">{{ item.title }}</a>{% endcapture %}

{% if is_in_dir and item.dir == '/BitCurator%20Environment/' or item.dir == sub_dir %}
{% if is_in_subdir and item.dir != sub_dir %}
{% assign is_in_subdir = false %}
</ul></li>
{% endif %}
{% if is_in_dir and item.dir == '/BitCurator%20Environment/' %}
{% assign is_in_dir = false %}
</ul></li>
{% endif %}

{% if suffix == '-index' %}
{% assign is_in_dir = true %}
{% assign sub_dir = item.dir %}
{% if is_in_dir %}
{% assign is_in_subdir = true %}
{% assign sub_dir = item.dir | append: item.stem | append: "/" %}
{% else %}
{% assign is_in_dir = true %}
{% endif %}
<li><b>{{ item_anchor }}</b><ul style="margin-bottom:0px">
{% elsif item.path != 'index.md' %}
<li>{{ item_anchor }}</li>
Expand Down

0 comments on commit 75daf63

Please sign in to comment.