Sha256: 58f88cf2496cbb9872f3109e2d880ad62e94d29be1497b0180422e20885fe931

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

---
title: Tags
layout: default
---

{% include layouts/header.html %}

<div class="g-banner tags-banner {{ site.postPatterns | prepend: 'post-pattern-' }}" data-theme="{{ site.theme-color }}">
    <h2>TAGS</h2>
</div>

<main class="tags-content">

    <ul class="tags-list">
        
        {% assign max_tag_count = 0 %}
        {% for tag in site.tags %}
            {% if tag[1].size > max_tag_count %}
            {% assign max_tag_count = tag[1].size %}
            {% endif %}
        {% endfor %}

        <li>
        {% for i in (1..max_tag_count) reversed %}
            {% for tag in site.tags %}
                {% if tag[1].size == i %}
                    <a href="{{ page.url }}#{{ tag[0] }}" class="tag">
                    {{ tag[0] }}<sup>{{ i }}</sup>
                    </a>
                {% endif %}
            {% endfor %}
        {% endfor %}
        </li>
        {% for i in (1..max_tag_count) reversed %}
            {% for tag in site.tags %}
                {% if tag[1].size == i %}
                    <li>
                        <span class="tag-name" id="{{ tag[0] }}">「{{ tag[0] }}」</span>
                        {% for post in tag[1] %}
                        <a class="tag-post" href="{{ post.url | relative_url }}" title="{{ post.title }}">{{ post.title }}</a>
                        {% endfor %}
                    </li>
                {% endif %}
            {% endfor%}
        {% endfor%}
        
    </ul>
</main>
    
{% include layouts/footer.html %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-h2o-ac-1.3.4 _layouts/tags.html
jekyll-theme-h2o-ac-1.3.1 _layouts/tags.html