Browse Source

Added article count in index.

dev
Franco Masotti 10 months ago
parent
commit
cf095068dd
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 9
      _pages/index.md

9
_pages/index.md

@ -16,6 +16,7 @@ excerpt: none
<div class="index" markdown="0">
{% assign i=0 | plus: 0 %}
{% assign posts_by_year_counter=0 | plus: 0 %}
{% for post in site.posts %}
{% assign open_list = false %}
@ -29,6 +30,8 @@ excerpt: none
{% if post.next %}
{% if current_year != next_year %}
</ul>
<em>{{ posts_by_year_counter }} posts in {{ next_year }}</em>
{% assign posts_by_year_counter=0 | plus: 0 %}
{% endif %}
{% endif %}
{% endif %}
@ -67,8 +70,12 @@ excerpt: none
</a>
</li>
{% if post.next == false %}
{% assign posts_by_year_counter=posts_by_year_counter | plus: 1 %}
{% if post.previous == nil %}
</ul>
<em>{{ posts_by_year_counter }} posts in {{ next_year }}</em>
{% endif %}
{% assign i=i | plus: 1 %}

Loading…
Cancel
Save