summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorMartijn Pieters <mj@zopatista.com>2012-03-23 23:01:22 +0100
committerJade Dominguez <plusjade@gmail.com>2012-03-24 13:18:17 -0700
commitcbfb9ca9ccf6e8da6a9cebd58317482d3628ce5f (patch)
treec7de6a7f6d2407c0f076bc7bb33a82dee35b7ab4 /_includes
parente3e849e6e3232cd9df30ce64880095b7b002ae9c (diff)
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.
Diffstat (limited to '_includes')
-rw-r--r--_includes/JB/pages_list14
1 files changed, 8 insertions, 6 deletions
diff --git a/_includes/JB/pages_list b/_includes/JB/pages_list
index 1afc3f3..42f827a 100644
--- a/_includes/JB/pages_list
+++ b/_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 %}