diff options
author | Natalia Ventre <natalia.ventre@gmail.com> | 2012-02-08 21:58:21 -0200 |
---|---|---|
committer | Natalia Ventre <natalia.ventre@gmail.com> | 2012-02-08 21:58:21 -0200 |
commit | 612ca2d53693f2ba41b6a654a1dc554238787a5a (patch) | |
tree | 6db0daf0c21f5f2a8f2f953277b1ba2eedc55648 /Just-Read/templates/archives.html | |
parent | 7fc66f3071afb214d26bf0a7b20048a751f223db (diff) | |
download | pelican-themes-612ca2d53693f2ba41b6a654a1dc554238787a5a.tar.gz |
added Just Read theme
Diffstat (limited to 'Just-Read/templates/archives.html')
-rw-r--r-- | Just-Read/templates/archives.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Just-Read/templates/archives.html b/Just-Read/templates/archives.html new file mode 100644 index 0000000..355fe6f --- /dev/null +++ b/Just-Read/templates/archives.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} +{% block title %}{{ SITENAME }} <small>[archive]</small>{% endblock %} +{% block content %} +<div role="main" class="content clearfix"> +<div class="wrapper main"> + {% for year, date_year in dates|groupby( 'date.year' ) %} + <h2>{{ year }}</h2> + {% for month, articles in date_year|groupby( 'date.month' ) %} + <h3>{{ articles[ 0 ].date.strftime( '%B' ) }}</h3> + + <ol class="archive"> + {% for article in articles %} + <li class="clearfix"><a href="{{ article.url }}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li> + {% endfor %} + </ol> + + {% endfor %} + {% endfor %} +</div> +</div> +{% endblock %}
\ No newline at end of file |