news.html 543 Bytes
Newer Older
Houtan Bastani's avatar
Houtan Bastani committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
---
title: News
---

{% assign this_year = false %}
{% for post in site.posts %}
{% capture next_year %}{{post.date | date: "%Y"}}{% endcapture %}
{% if this_year == false or this_year != next_year %}
<h2>{{ next_year }}</h2>
{% assign this_year = next_year %}
{% endif %}
<br />
<div class="dynare_home_page_post_box" onclick="location.href='{{ post.url }}';"><h3 class="dynare_home_page_post_title">{{ post.title }}</h3>
<span class="dynare_home_page_date">{{ post.date | date_to_long_string }}</span>
{{ post.excerpt }}
</div>
{% endfor %}