Browse files

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.
  • Loading branch information...
1 parent e3e849e commit cbfb9ca9ccf6e8da6a9cebd58317482d3628ce5f @mjpieters mjpieters committed with plusjade Mar 23, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 _includes/JB/pages_list
View
14 _includes/JB/pages_list
@@ -24,12 +24,14 @@ Usage:
{% include custom/pages_list %}
{% else %}
{% for node in pages_list %}
- {% if group == null or group == node.group %}
- {% if page.url == node.url %}
- <li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
- {% else %}
- <li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
- {% endif %}
+ {% if node.title != null %}
+ {% if group == null or group == node.group %}
+ {% if page.url == node.url %}
+ <li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
+ {% else %}
+ <li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
+ {% endif %}
+ {% endif %}
{% endif %}
{% endfor %}
{% endif %}

0 comments on commit cbfb9ca

Please sign in to comment.