summaryrefslogtreecommitdiff
path: root/_includes/JB/pages_list
diff options
context:
space:
mode:
Diffstat (limited to '_includes/JB/pages_list')
-rw-r--r--_includes/JB/pages_list30
1 files changed, 15 insertions, 15 deletions
diff --git a/_includes/JB/pages_list b/_includes/JB/pages_list
index c247a42..07cb058 100644
--- a/_includes/JB/pages_list
+++ b/_includes/JB/pages_list
@@ -20,18 +20,18 @@ Usage:
This helper can be seen in use at: ../_layouts/default.html
-->{% endcomment %}
-
-{% 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 %}
-
- {% endif %}
-{% endfor %}
-
-{% assign pages_list = null %}
-{% assign group = null %}
+{% if site.JB.pages_list.engine == "custom" %}
+ {% 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 %}
+ {% endif %}
+ {% endfor %}
+{% endif %}
+{% assign pages_list = nil %}
+{% assign group = nil %} \ No newline at end of file