Sha256: 4f8d826c7d21d3dba1913028d6febfee54f08083456617eb79b4c5ffd6267c1f

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 KB

Contents

{% comment %}<!--
The tags_list include is a listing helper for tags.
Usage:
  1) assign the 'tags_list' variable to a valid array of tags.
  2) include JB/tags_list
  example:
    <ul>
  	  {% assign tags_list = site.tags %}  
  	  {% include JB/tags_list %}
  	</ul>
  
  Notes: 
    Tags can be either a Hash of tag objects (hashes) or an Array of tag-names (strings).
    The encapsulating 'if' statement checks whether tags_list is a Hash or Array.
    site.tags is a Hash while page.tags is an array.
    
  This helper can be seen in use at: ../_layouts/default.html
-->{% endcomment %}

{% if site.JB.tags_list.provider == "custom" %}
  {% include custom/tags_list %}
{% else %}
  {% if tags_list.first[0] == null %}
    {% for tag in tags_list %} 
    	<li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
    {% endfor %}
  {% else %}
    {% for tag in tags_list %} 
    	<li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
    {% endfor %}
  {% endif %}
{% endif %}
{% assign tags_list = nil %}

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
sim-css-0.1.0 _includes/JB/tags_list
dextery-0.0.4a lib/dextery/template/_includes/JB/tags_list
dextery-0.0.4 lib/dextery/template/_includes/JB/tags_list
dextery-0.0.3c lib/dextery/template/_includes/JB/tags_list
delphivm-0.9.0 dvmimports.org/_includes/JB/tags_list
delphivm-0.8.1 dvmimports.org/_includes/JB/tags_list
delphivm-0.8.0 dvmimports.org/_includes/JB/tags_list
delphivm-0.7.7 dvmimports.org/_includes/JB/tags_list
delphivm-0.7.4 dvmimports.org/_includes/JB/tags_list