一共输出 {{ site.posts.size }} 篇文章
{% for post in site.posts %}
{% if post.next != null %}
{% capture postYear %} {{ post.date | date: "%Y" }} {% endcapture %}
{% capture nextPostYear %} {{ post.next.date | date: "%Y" }} {% endcapture %}
{% if postYear != nextPostYear %}
{{ post.date | date: '%Y' }}
{% endif %}
{% else %}
{{ post.date | date: '%Y' }}
{% endif %}
-
{% endfor %}
{% include footer.html %}
{% if site.lock_menu and site.lock_menu == true %}
{% endif %}
{% include statistics_body.html %}