Sha256: 2cfc80af2fa727af008a6c14806c43e0e44762a88eb3fa96e49ecfcef8e0fc9f

Contents?: true

Size: 1.95 KB

Versions: 8

Compression:

Stored size: 1.95 KB

Contents

---
layout: default
---
{%-include back_link.html -%}
<div class="post">
{% assign titlelen = page.title.size %}
{% if titlelen > 0 %}
<h2>{{ page.title }}</h2>
{% endif %}
<article>
    {% comment %}
        sort tags by count
    {% endcomment %}

    {% capture tagsStr %}
        {% for tag in site.tags %}
            {{ tag[1].size | plus: 10000 }}#{{ tag[0] }}#{{ tag[1].size }}@@
        {% endfor %}
    {% endcapture %}

    {% assign sortedtags = tagsStr | split:'@@' | sort %}

  
    {% assign  layouttype = site.theme_config.tags_layout_style | default: "auto" %}

    {% if layouttype == 'auto' %}
        {% if site.tags.size > 20 %}
            {% assign  layouttype = 'flat' %}
        {% else %}
            {% assign  layouttype = 'list' %}
        {% endif %}
    {% endif %} 
    {% if layouttype == 'flat' %}
        {% assign counter = 0 %}
        {% for tag in sortedtags reversed %}
            {% assign tagitems = tag | split: '#' %}
            {% assign  tagname = tagitems[1] %}
            {% assign  tagnameCount = tagitems[2] %}
            {% assign counter2 = counter | modulo: 4 %}
            {% if counter2  == 3 %}
            <p>
            {% endif %}
            {% capture counter %}{% increment counter %} {% endcapture %}


    <text><a href ="{{'/tags'|relative_url}}/{{ tagname}}.html" >{{ tagname}}</a> <sup>{{ tagnameCount }}</sup></text> &nbsp; &nbsp;
        
        {% endfor %}
    {% else %}
    <ul class="postlistul" >
       

        {% for tag in sortedtags reversed %}
          
            {% assign tagitems = tag | split: '#' %}
            {% assign  tagname = tagitems[1] %}
            {% assign  tagnameCount = tagitems[2] %}
        <li class="postlistli">
            <text>
                <a href ="{{'/tags'|relative_url}}/{{ tagname}}.html" >{{ tagname}}</a>
                <sup> {{ tagnameCount }} </sup>
            </text> &nbsp; 
        </li>
        {% endfor %}
    </ul>

    {% endif %}
    
</article>
</div>
 

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jekyll-zeta-0.3.5.3 _layouts/tags.html
jekyll-zeta-0.3.5.2 _layouts/tags.html
jekyll-zeta-0.3.5.1 _layouts/tags.html
jekyll-zeta-0.3.5 _layouts/tags.html
jekyll-zeta-0.3.4 _layouts/tags.html
jekyll-zeta-0.3.3 _layouts/tags.html
jekyll-zeta-0.3.2.2 _layouts/tags.html
jekyll-zeta-0.3.2.1 _layouts/tags.html