18F/18f.gsa.gov

View on GitHub
_layouts/tag-index.html

Summary

Maintainability
Test Coverage
---
layout: default
header_border: true
---

<div class="grid-container usa-section">

  <h1>{{ page.title }}</h1>

  {{ content }}

  {% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
  <!-- {% assign tag_words = site_tags | split:',' | sort %} -->

  {% for tag in tag_words %}

  {% capture count %}

          {% for tag_number in site.tags %}

              {% if tag_number[0] == tag %}

                  {{tag_number[1] | size }}
                  <!-- <p> {{tag | size }} </p> -->

              {% endif %}

          {% endfor %}

  {% endcapture %}

    <p>
    <a href="{{ site.baseurl }}/tags/{{tag | slugify }}/" >{{tag}}</a>
    — {{count}}
  </p>


        <!-- <p> {{ tag | size }} </p> -->



    {% endfor %}

</div>