{{ define "main" }}
<section class="layout-wrap">
    <div class="layout-title">
        <span>{{ .Title }}</span>
    </div>
    <div class="layout-wrap-inner list-categories">
        <ul class="category-list">
            {{ $data := .Data }} {{ range $key, $value := .Data.Terms.ByCount }}
            <li class="category-list-item">
                <a class="category-list-link" href="{{ $value.Name | urlize }}">{{ $value.Name }}</a>
                <span class="category-list-count">{{ $value.Count }}</span>
            </li>
            {{ end }}
        </ul>
    </div>
</section>
{{ end }}