How can I scroll through entries in a Jekyll site, but take action only on messages where the year is a certain value?
{% for post in site.posts %} {% if post.date.year == 2012 %} <p>{{ post.date }}</p> <p>{{ post.title }}</p> {% endif %} {% endfor %}
The above does not work. What is the right way to do this?
source share