summaryrefslogtreecommitdiff
path: root/templates/archives/writing_date.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/archives/writing_date.html')
-rw-r--r--templates/archives/writing_date.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/archives/writing_date.html b/templates/archives/writing_date.html
new file mode 100644
index 0000000..4091e74
--- /dev/null
+++ b/templates/archives/writing_date.html
@@ -0,0 +1,32 @@
+{% extends 'base.html' %}
+{% load typogrify_tags %}
+{% load html5_datetime %}
+{% block pagetitle %}{{block.super}}: Archive{% endblock %}
+{% block bodyid %}id="archive"{%endblock%}
+
+
+{% block primary %}<ul class="bl" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
+ <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> &rarr; </li>
+ <li><a href="/jrnl/" title="See all Journal Entries" itemprop="url"><span itemprop="title">Journal</span></a> &rarr;</li>
+ <li>{% if not month %}{{year|date:"Y"}}{%else%}<a href="/jrnl/{{month|date:"Y"}}/">{{month|date:"Y"}}</a> &rarr;{%endif%}</li>
+ {% if month %}<li>{{month|date:"F"}}</li>{% endif %}
+ </ul>
+ <main role="main" id="writing-archive" class="archive">
+ <h1>{% if not month %}{{year|date:"Y"}}, on luxagraf{%else%} Archive: {{month|date:"F Y"}}{% endif %}</h1>{% if not month %}
+ <ul class="date-archive">{% regroup object_list by pub_date.month as entries_by_month %}{% for entries in entries_by_month reversed %}
+ <li class="dater"><span>{{ entries.list.0.pub_date|date:"F Y" }}</span>
+ <ul>{% for post in entries.list %}
+ <li class="arc-item">
+ <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="date-archive">{% for post in object_list %}
+ <li class="arc-item"><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%}