Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Added: _includes/JB/list_item #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions _includes/JB/list_item
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% comment %}<!--
The list_item include is a listing helper.
Usage:
list_item is included by pages_list to render each item.

-->{% endcomment %}

{% if site.JB.list_item.provider == "custom" %}
{% include custom/list_item %}
{% else %}
{% 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 %}
6 changes: 1 addition & 5 deletions _includes/JB/pages_list
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ Usage:
{% 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 %}
{% include JB/list_item %}
{% endif %}
{% endfor %}
{% endif %}
Expand Down