Sha256: 31219f6c7eca3cc6fb34649b5f417e23d21377e4877785e3d3e889ce5d3839ba
Contents?: true
Size: 1.21 KB
Versions: 12
Compression:
Stored size: 1.21 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><i class="fa fa-tags"></i> <a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag }}-ref">{{ tag }} {% unless nobadges %}<span class="badge">{{ site.tags[tag].size }}</span>{% endunless %} </a></li> {% endfor %} {% else %} {% for tag in tags_list %} <li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span class="badge">{{ tag[1].size }}</span></a></li> {% endfor %} {% endif %} {% endif %} {% assign tags_list = nil %}
Version data entries
12 entries across 12 versions & 1 rubygems