Skip to content

Commit

Permalink
Only list pages with a title. #69
Browse files Browse the repository at this point in the history
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
mjpieters authored and plusjade committed Mar 24, 2012
1 parent e3e849e commit cbfb9ca
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions _includes/JB/pages_list
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit cbfb9ca

Please sign in to comment.