diff options
| -rw-r--r-- | _layouts/tagsort.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/_layouts/tagsort.html b/_layouts/tagsort.html index 359484a..5dd20ec 100644 --- a/_layouts/tagsort.html +++ b/_layouts/tagsort.html @@ -4,6 +4,18 @@ layout: default <h1>{{ page.tag }}</h1> +{% capture nposts %} +{{ site.tags[page.tag] | size }} +{%- endcapture -%} +{%- capture nposts_mod10 -%} +{{ nposts | modulo: 10 }} +{%- endcapture -%} +<small> + {{ nposts }} {% if nposts_mod10 == "1" %} post + {%- else -%} posts + {% endif %} +</small> + <div class="posts"> {% for post in site.tags[page.tag] %} {% include post-preview.html %} |
