Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit cbfb9ca9ccf6e8da6a9cebd58317482d3628ce5f 1 parent e3e849e
@mjpieters mjpieters authored plusjade committed
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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.