diff options
author | luxagraf <sng@luxagraf.net> | 2012-10-14 22:29:43 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2012-10-14 22:29:43 -0400 |
commit | 37ca84e1f55e14b87b1f8d9e02e81d9b55efca85 (patch) | |
tree | 96b21f645ff6e321694e4cec1839844f0e22d358 /design/templates/archives/writing_date.html | |
parent | 3e2646125792d2152aef086bfad2f0d1062f1d66 (diff) |
moved and modified a few templates
Diffstat (limited to 'design/templates/archives/writing_date.html')
-rw-r--r-- | design/templates/archives/writing_date.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/design/templates/archives/writing_date.html b/design/templates/archives/writing_date.html new file mode 100644 index 0000000..67144b3 --- /dev/null +++ b/design/templates/archives/writing_date.html @@ -0,0 +1,26 @@ +{% extends 'base.html' %} +{% load typogrify %} +{% load html5_datetime %} +{% block pagetitle %}{{block.super}}: Archive{% endblock %} +{% block bodyid %}id="archive"{%endblock%} +{% block primary %} +<p>How did you get here? You URL chopping maniac you. Right on.</p> + +<h1>{% if type == 'year' %}{{date}}, on luxagraf{%else%} Archive: {{date}} {% endif %}</h1>{% if type == 'year' %} + <ul class="archive">{% regroup object_list by pub_date.month as entries_by_month %}{% for entries in entries_by_month %} + <li><span>{{ entries.list.0.pub_date|date:"F Y" }}</span> + <ul>{% for post in entries.list %} + <li> + <a href="{{post.get_absolute_url}}" title="{{post.title}}">{{post.title|smartypants|widont|safe }}</a> + <time datetime="{{post.pub_date|html5_datetime}}">{{post.pub_date|date:"M d, Y"}}</time> + </li> {% endfor %} + </ul> + </li>{% endfor %} + </ul>{% else %} + <ul class="archive">{% for post in object_list %} + <li><a href="{{post.get_absolute_url}}" title="{{post.title}}">{{post.title|smartypants|widont|safe }}</a> + <time datetime="{{post.pub_date|html5_datetime}}">{{post.pub_date|date:"M d, Y"}}</time> + </li> {% endfor %} + </ul> + {% endif %} +{% endblock%} |