diff options
Diffstat (limited to 'blog.html')
-rw-r--r-- | blog.html | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -6,11 +6,14 @@ {% block content %} <h2>Latest posts</h2> -{% for post in site.posts %} -<p> - <a href="{{ post.get_url() }}">{{ post.title }}</a> - - - {{ post.date.strftime('%Y, %B %d') }} -</p> +{% for year,entries in site.posts|group_by_year|dictsort|reverse %} + <h3>{{ year }}</h3> + {% for post in entries %} + <p> + {{ post.date.strftime('%B %d') }} + - + <a href="{{ post.get_url() }}">{{ post.title }}</a> + </p> + {% endfor %}</ul></li> {% endfor %} {% endblock %} |