25 lines
507 B
HTML
25 lines
507 B
HTML
{%- if include.keys -%}
|
|
{%- assign keys = include.keys -%}
|
|
{%- endif -%}
|
|
|
|
{%- if include.field -%}
|
|
{%- assign field = include.field -%}
|
|
{%- endif -%}
|
|
|
|
<div class="common-list">
|
|
<ul>
|
|
<li>
|
|
<a href="/index.html">
|
|
All<span>{{ site.posts.size }}</span>
|
|
</a>
|
|
</li>
|
|
|
|
{% for key in keys %}
|
|
<li>
|
|
<a href="{{ url }}#h-{{ key }}">
|
|
{{ key }} <span>{{ site.posts | where: field, key | size }}</span>
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|