From ee6db3c3dc4dbe8903265fde6e799872dcd0fc71 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 8 Feb 2016 13:18:18 -0500 Subject: added note month and year archives --- design/sass/_notes.scss | 1 + design/templates/archives/notes.html | 2 +- design/templates/archives/notes_date.html | 31 ++++++++++++++++--------------- design/templates/details/note.html | 6 +++--- 4 files changed, 21 insertions(+), 19 deletions(-) (limited to 'design') diff --git a/design/sass/_notes.scss b/design/sass/_notes.scss index cdfdb42..1a6d35d 100644 --- a/design/sass/_notes.scss +++ b/design/sass/_notes.scss @@ -32,6 +32,7 @@ } } .note--title { + @include constrain_narrow; text-align: left; font-weight: 400; font-size: 1.5em; diff --git a/design/templates/archives/notes.html b/design/templates/archives/notes.html index ed2a7be..9429831 100644 --- a/design/templates/archives/notes.html +++ b/design/templates/archives/notes.html @@ -2,7 +2,7 @@ {% load typogrify_tags %} {% load html5_datetime %} {% block pagetitle %} Field Notes | luxagraf {% endblock %} -{% block metadescription %} The LongHandPixels Blog Archive, covering HTML, CSS and other web nerdery.{% endblock %} +{% block metadescription %} Rough notes and sketches from the field {% endblock %} {%block bodyid%}class="notes" id="notes-archive"{%endblock%} {% block primary %} diff --git a/design/templates/archives/notes_date.html b/design/templates/archives/notes_date.html index 676a465..345a383 100644 --- a/design/templates/archives/notes_date.html +++ b/design/templates/archives/notes_date.html @@ -2,20 +2,21 @@ {% load typogrify_tags %} {% load html5_datetime %} {% load month_number_to_name %} -{% block pagetitle %} Field Notes Published in {% if month %}{{month|month_number_to_name}}{%endif%} {{year}} | luxagraf{% endblock %} -{% block bodyid %}class="notes" id="archive-{% if month %}{{month|month_number_to_name}}{%endif%}{{year}}"{%endblock%} +{% block pagetitle %} Field Notes Published in {% if month %}{{month}}{%endif%} {{year}} | luxagraf{% endblock %} +{% block bodyid %}class="notes" id="archive-{% if month %}{{month}}{%endif%}{{year}}"{%endblock%} {% block primary %}
-

Field Notes Published in {% if month %}{{month|month_number_to_name}}{%endif%} {{year}}

{% if month %}{% for object in object_list %} + +

Field Notes Published in {% if not month %}{{year|date:"Y"}}{%else%} {{month|date:"F Y"}}{% endif %}

{% if month %}{% for object in object_list %}
-

{{object.title|safe|amp|smartypants}}

+

{{object.title|safe|amp|smartypants}}

- {{object.render|safe|amp|smartypants|urlizetrunc:45 }} + {{object.body_html|safe|amp|smartypants}}
@@ -23,11 +24,11 @@
{% endfor %} {% else %} -{% regroup object_list by date_created.month as entries_by_month %}{% for month in entries_by_month %} +{% regroup object_list by pub_date.month as entries_by_month %}{% for month in entries_by_month %}
-

{{ month.list.0.date_created|date:"F Y" }}

{% for object in month.list|dictsortreversed:"date_created" %} +

{{ month.list.0.pub_date|date:"F Y" }}

{% for object in month.list|dictsortreversed:"pub_date" %}
-

{{object.title|safe|amp|smartypants}}

+

{{object.title|safe|amp|smartypants}}

- {{object.render|safe|amp|smartypants|urlizetrunc:45 }} + {{object.body_html|safe|amp|smartypants }}