add date sorting
[phinde.git] / data / templates / search / sidebar-filter.htm
1 {% if attribute(activeFilters, type) %}
2  <b>{{title}}</b>
3  <ul class="nav nav-pills">
4   <li class="active">
5    <a href="{{attribute(activeFilters, type).removeUrl}}">
6     {{activeFilters[type].label|default('unknown')}} ❌
7    </a>
8   </li>
9  </ul>
10 {% elseif attribute(aggregations, type).buckets|length > 1 %}
11 <b>{{title}}</b>
12 <ul class="nav nav-pills">
13 {% for bucket in attribute(aggregations, type).buckets|slice(0, 10) %}
14  <li>
15   <a href="{{bucket.url}}">
16    {{bucket.key|default('unknown')}} ({{bucket.doc_count}})
17   </a>
18  </li>
19 {% endfor %}
20 </ul>
21 {% endif %}