File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
{% if include.section != nill and include.section != "" %}
2
- {% assign section = include.section %}
2
+ {% assign section = "/" | append: include.section | append: "/" %}
3
3
{% else %}
4
4
{% assign section = page.url %}
5
5
{% endif %}
9
9
{% for item in site.pages %}
10
10
{% assign part1 = item.url | slice: 0, section.size %}
11
11
{% if part1 == section %}
12
- {% assign part2 = item.url | slice: section.size, 999 | split: "/" %}
12
+ {% assign part2 = item.url | slice: section.size, 999 | split: "/" %}
13
13
{% if part2.size == 1 %}
14
14
{% assign selected = selected | push: item %}
15
15
{% endif %}
16
16
{% endif %}
17
17
{% endfor %}
18
18
19
19
<ul>
20
- {% assign selected = selected | sort_natural: "title" %}
21
- {% for item in selected %}
22
- <li><a href="{{ item.url }}">{{ item.title }}</a></li>
20
+ {% for item in selected | sort_natural: "title" %}
21
+ {% if item.title != nill %}
22
+ <li><a href="{{ item.url }}"> {{ item.title }}</a></li>
23
+ {% endif %}
23
24
{% endfor %}
24
25
</ul>
You can’t perform that action at this time.
0 commit comments