Sha256: 66e8dcf9a963a7b0fc8f461b7e69a5a5dd060a0c793e442b460c136d67fe4eef

Contents?: true

Size: 1.41 KB

Versions: 12

Compression:

Stored size: 1.41 KB

Contents

{% comment %}<!--
The pages_list include is a listing helper.
Usage:
  1) assign the 'pages_list' variable to a valid array of pages or posts.
  2) include JB/pages_list
  example:
    <ul>
  	  {% assign pages_list = site.pages %}
  	  {% include JB/pages_list %}
  	</ul>

  Grouping: (optional):
  	assign the 'group' variable to constrain the list to only pages/posts
  	in the given group. Note you must define the group manually in the page/post
  	meta-data to use this feature.
  	Grouping is mainly helpful for non-post pages.
  	If you want to group posts, it's easier/better to tag them, then pass the tagged posts array.
  	i.e. site.tags.cool_tag (this returns an array of posts tagged: cool_tag)

  This helper can be seen in use at: ../_layouts/default.html
-->{% endcomment %}

{% if site.JB.pages_list.provider == "custom" %}
  {% include custom/pages_list %}
{% else %}
  {% for node in pages_list %}
  {% if node.title != null %}
  {% if group == null or group == node.group %}

    {% if limit == null or forloop.index <= limit %}
      {% 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 %}
  {% endif %}
  {% endfor %}
{% endif %}
{% assign pages_list = nil %}
{% assign group = nil %}
{% assign limit = nil %}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jmblog-theme-1.1.7 _includes/JB.old/pages_list
jmblog-theme-1.1.6 _includes/JB.old/pages_list
jmblog-theme-1.1.5 _includes/JB.old/pages_list
jmblog-theme-1.1.4 _includes/JB.old/pages_list
jmblog-theme-1.1.3 _includes/JB.old/pages_list
jmblog-theme-1.1.2 _includes/JB.old/pages_list
jmblog-theme-1.1.1 _includes/JB.old/pages_list
jmblog-theme-1.1 _includes/JB.old/pages_list
jmblog-theme-1.0 _includes/JB/pages_list
jmblog-theme-0.1.2 _includes/JB/pages_list
jmblog-theme-0.1.1 _includes/JB/pages_list
jmblog-theme-0.1.0 _includes/JB/pages_list