diff options
author | luxagraf <sng@luxagraf.net> | 2020-08-06 14:59:54 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-08-06 14:59:54 -0400 |
commit | 9033041ac16c51c943e593e2a67420ea20b6d3a5 (patch) | |
tree | ae94fcb82701cadacade32cf1008d6c83b64809e /app/fieldnotes/templates | |
parent | 1c8542bba4404932c621af0d9d93813218340af1 (diff) |
Made Field notes top level and included photos in archive list
Diffstat (limited to 'app/fieldnotes/templates')
-rw-r--r-- | app/fieldnotes/templates/fieldnotes/fieldnote_list.html | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app/fieldnotes/templates/fieldnotes/fieldnote_list.html b/app/fieldnotes/templates/fieldnotes/fieldnote_list.html index 5ee6f06..915d21f 100644 --- a/app/fieldnotes/templates/fieldnotes/fieldnote_list.html +++ b/app/fieldnotes/templates/fieldnotes/fieldnote_list.html @@ -9,14 +9,14 @@ {% block primary %}<main role="main" id="essay-archive" class="essay-archive archive-list"> <div class="essay-intro"> <h2>Field Notes</h2> - <p>Quick notes, sketches and images from the road. This is the semi-orgnized brain dump that comes before the more organized <a href="/jrnl/" title="read the journal">journal entries</a> and <a href="/essays/" title="read essays">essays</a>. If I used social media this is the stuff I'd probably put there, but I prefer to put it here, even if it means a lot fewer people read it.</p> + <p>Quick notes, sketches, and images from the road. This is the semi-organized brain dump that comes before the more organized <a href="/jrnl/" title="read the journal">journal entries</a>. If I used social media this is the stuff I'd probably put there, but I prefer to put it here, even if it means a lot fewer people read it.</p> </div> {% autopaginate object_list 30 %} - <ul class="fancy-archive-list">{% for object in object_list %}{% if object.slug != 'about' %} - <li class="h-entry hentry" itemscope itemType="http://schema.org/Article"> + <ul class="fancy-archive-list">{% for object in object_list %}{% if object.get_object_type == "fieldnote" %} + <li class="h-entry hentry field-note-item" itemscope itemType="http://schema.org/Article"> <a href="{{object.get_absolute_url}}" class="u-url"> {% if object.featured_image %}<div class="circle-img-wrapper"><img src="{{object.featured_image.get_thumbnail_url}}" alt="{{object.featured_image.alt}}" class="u-photo" /></div>{%endif%} - <span class="date dt-published">{{object.pub_date|date:"F d, Y"}}</span> + <span class="datei">Field Note: </span><span class="date dt-published">{{object.pub_date|date:"F d, Y"}}</span> <a href="{{object.get_absolute_url}}"> <h2>{{object.title|safe|smartypants|widont}}</h2> {% if object.subtitle %}<h3 class="p-summary">{{object.subtitle|safe|smartypants|widont}}</h3>{%endif%} @@ -28,8 +28,14 @@ <data class="p-latitude" value="{{object.latitude}}"></data> <data class="p-longitude" value="{{object.longitude}}"></data> </h4>{% endif %} - </li> - {%endif%}{%endfor%}</ul> + </li>{%else%} + <li class="field-photo-item"> + <figure class="daily-figure"> + {% include 'lib/img_picwide.html' with image=object caption=False exif=False is_cluster=False cluster_class='' extra='' %} + <figcaption class="picwide">{{object.location}}, {{object.location.state.country}} – {{object.pub_date|date:"M m, Y"}}</figcaption> + </figure> + </li>{%endif%} + {%endfor%}</ul> </main> <nav aria-label="page navigation" class="pagination"> {% paginate %} |