Skip to content

Commit cbfb9ca

Browse files
mjpietersplusjade
authored andcommitted
Only list pages with a title. #69
This skips the page.html, default.html, what-have-you-not pages that should not be listed in this list anyway, which otherwise result in empty bullet points.
1 parent e3e849e commit cbfb9ca

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

_includes/JB/pages_list

+8-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ Usage:
2424
{% include custom/pages_list %}
2525
{% else %}
2626
{% for node in pages_list %}
27-
{% if group == null or group == node.group %}
28-
{% if page.url == node.url %}
29-
<li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
30-
{% else %}
31-
<li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
32-
{% endif %}
27+
{% if node.title != null %}
28+
{% if group == null or group == node.group %}
29+
{% if page.url == node.url %}
30+
<li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
31+
{% else %}
32+
<li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
33+
{% endif %}
34+
{% endif %}
3335
{% endif %}
3436
{% endfor %}
3537
{% endif %}

0 commit comments

Comments
 (0)