From 8960ec19d17354c0c5149d48080faccf40e901ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Tue, 18 Dec 2012 12:27:11 +0100 Subject: [PATCH] group the archives by year --- theme/static/css/main.css | 13 +++++++++---- theme/templates/archives.html | 12 ++++++++---- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/theme/static/css/main.css b/theme/static/css/main.css index 3a31559..bb7f4e8 100644 --- a/theme/static/css/main.css +++ b/theme/static/css/main.css @@ -51,12 +51,17 @@ hr { border: 2px solid #EEEEEE; } /* Anchors */ a {outline: 0;} a img {border: 0px; text-decoration: none;} -a:link, a:visited { - color: #C74350; +.body a:link, .body a:visited { + border-radius: 5px 5px 5px 5px; + padding: 0px 5px; + background-color: rgb(234, 234, 234); + color: rgb(0, 0, 0); + text-decoration: none; } -.entry-content a:hover, .entry-content a:active { - color: #000; +.body a:hover, .body a:active { + color: #fff; + background-color: #000; } h1 a:link, h1 a:visited { font-size: 1.2em; text-decoration: none; color: #000;, z-index: 10;} diff --git a/theme/templates/archives.html b/theme/templates/archives.html index f7f1c40..64e7c9b 100644 --- a/theme/templates/archives.html +++ b/theme/templates/archives.html @@ -1,12 +1,16 @@ {% extends "base.html" %} {% block content %}
-

Archives for {{ SITENAME }}

+

Some archives for this blog

-{% for article in dates %} -
{{ article.locale_date }}
-
{{ article.title }}
+{% for year in articles|groupby('date.year') %} +
{{ year.grouper }}
+
{% endfor %}