diff options
author | luxagraf <sng@luxagraf.net> | 2015-11-04 21:40:38 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-11-04 21:40:38 -0500 |
commit | 24b760797fd26e80c1738c614408b02b50284d4d (patch) | |
tree | 3f847d1d9d049f8c456cc31c2ad5980101aecb11 /design | |
parent | 535038e99462cf3738e48871ff69b0192ec62572 (diff) |
cleaned up the code in blog and refactored to PEP 8 and class based views
Diffstat (limited to 'design')
-rw-r--r-- | design/templates/archives/writing_date.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/design/templates/archives/writing_date.html b/design/templates/archives/writing_date.html index dabe255..7385e81 100644 --- a/design/templates/archives/writing_date.html +++ b/design/templates/archives/writing_date.html @@ -8,11 +8,11 @@ {% 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> → </li> <li><a href="/jrnl/" title="See all Journal Entries" itemprop="url"><span itemprop="title">Journal</span></a> →</li> - <li>{% if type == 'year' %}{{year}}{%else%}<a href="/jrnl/{{year}}/">{{year}}</a> →{%endif%}</li> - {% if type == 'monthly' %}<li>{{month}}</li>{% endif %} + <li>{% if not month %}{{year|date:"Y"}}{%else%}<a href="/jrnl/{{month|date:"Y"}}/">{{month|date:"Y"}}</a> →{%endif%}</li> + {% if month %}<li>{{month|date:"F"}}</li>{% endif %} </ul> <main role="main" id="writing-archive" class="archive"> - <h1>{% if type == 'year' %}{{year}}, on luxagraf{%else%} Archive: {{month}} {{year}} {% endif %}</h1>{% if type == 'year' %} + <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 %} <li class="dater"><span>{{ entries.list.0.pub_date|date:"F Y" }}</span> <ul>{% for post in entries.list %} |