diff --git a/_includes/JB/list_item b/_includes/JB/list_item new file mode 100644 index 0000000000..3a0fe26f0f --- /dev/null +++ b/_includes/JB/list_item @@ -0,0 +1,16 @@ +{% comment %}{% endcomment %} + +{% if site.JB.list_item.provider == "custom" %} + {% include custom/list_item %} +{% else %} + {% if page.url == node.url %} +
  • {{node.title}}
  • + {% else %} +
  • {{node.title}}
  • + {% endif %} +{% endif %} diff --git a/_includes/JB/pages_list b/_includes/JB/pages_list index 1afc3f339b..cf362f3752 100644 --- a/_includes/JB/pages_list +++ b/_includes/JB/pages_list @@ -25,11 +25,7 @@ Usage: {% else %} {% for node in pages_list %} {% if group == null or group == node.group %} - {% if page.url == node.url %} -
  • {{node.title}}
  • - {% else %} -
  • {{node.title}}
  • - {% endif %} + {% include JB/list_item %} {% endif %} {% endfor %} {% endif %}