I\'m rewriting my blog to use Jekyll. Jekyll uses the Liquid templating language so it makes it a little more difficult to learn how to customize.
I\'d like to group
Try:
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
{{this_year}}
{% else %}
{% if this_year != last_year %}
{{this_year}}
{% endif %}
{% endif %}
-
{{ post.date | date_to_string }} »
{{ post.title }}
{% if forloop.last %}
{% endif %}
{% capture last_year %}{{ this_year }}{% endcapture %}
{% endfor %}