aboutsummaryrefslogtreecommitdiffstats
path: root/tuxlite_tbs
diff options
context:
space:
mode:
authorMatts <s@tuxlite.com>2012-02-11 19:07:09 -0500
committerMatts <s@tuxlite.com>2012-02-11 19:07:09 -0500
commit4dc289551fee1219e1006dcce767ccf59fd8d79f (patch)
treea557a8e4fb07823a2904ef53c26a48ea469a8e2a /tuxlite_tbs
parent775013fe20a800d89c352822e0ecd18c3dd13ffb (diff)
downloadpelican-themes-4dc289551fee1219e1006dcce767ccf59fd8d79f.zip
pelican-themes-4dc289551fee1219e1006dcce767ccf59fd8d79f.tar.gz
pelican-themes-4dc289551fee1219e1006dcce767ccf59fd8d79f.tar.bz2
List archives using a 2 column table.
Diffstat (limited to 'tuxlite_tbs')
-rw-r--r--tuxlite_tbs/templates/archives.html26
1 files changed, 15 insertions, 11 deletions
diff --git a/tuxlite_tbs/templates/archives.html b/tuxlite_tbs/templates/archives.html
index 1032c42..1520943 100644
--- a/tuxlite_tbs/templates/archives.html
+++ b/tuxlite_tbs/templates/archives.html
@@ -1,15 +1,19 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} <small>[archive]</small>{% endblock %}
{% block content %}
-{% for year, date_year in dates|groupby( 'date.year' ) %}
-<h2>{{ year }}</h2>
-{% for month, articles in date_year|groupby( 'date.month' ) %}
-<p><b>{{ articles[ 0 ].date.strftime( '%B' ) }}</b></p>
-<ul>
-{% for article in articles %}
- <li><a href="{{ article.url }}">{{ article.title }}</a></li>
-{% endfor %}
-</ul>
-{% endfor %}
-{% endfor %}
+
+<h1>Archives</h1>
+
+<table class="table">
+ <tbody>
+ {% for article in dates %}
+ <tr>
+ <td>{{ article.date.strftime("%d %b %Y") }}</td>
+ <td><a href='{{ article.url }}'>{{ article.title }}</a></td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+
{% endblock %}