diff options
author | luxagraf <sng@luxagraf.net> | 2018-05-16 18:21:47 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-05-16 18:21:47 -0400 |
commit | 29afff03b510d818f9935571282db670e2e2b8c7 (patch) | |
tree | b91cb290a3e2dd063feb326c66aa3d342d4375d5 /design/templates/archives/sightings.html | |
parent | 8bfb9aac726df7969a0132c540d8d34a44dc7f9e (diff) |
changed layout of sightings pages
Diffstat (limited to 'design/templates/archives/sightings.html')
-rw-r--r-- | design/templates/archives/sightings.html | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/design/templates/archives/sightings.html b/design/templates/archives/sightings.html index e9d4610..413ec44 100644 --- a/design/templates/archives/sightings.html +++ b/design/templates/archives/sightings.html @@ -18,14 +18,12 @@ <article class="{% cycle 'odd' 'even' %} {% cycle 'first' 'second' 'third' %}"> <div class="post--image"> {% load get_image_by_size %} -{% load get_image_width %} +{% load get_image_width %}{% if object.ap.image%} <figure> <a href="{{object.ap.get_absolute_url}}" title="{{object.ap}}"> -<img class="picfull" sizes="(max-width: 680px) 100vw, (min-width: 681) 680px" srcset="{% for size in object.image.sizes.all%}{% get_image_by_size object.image size.name %} {{size.width}}w{% if forloop.last%}"{%else%}, {%endif%}{%endfor%} - {% for size in object.image.sizes.all%}{%if forloop.first %} src="{% get_image_by_size object.image size.name %}"{%endif%}{%endfor%} alt="{{object.image.alt}} photographed by {% if object.image.photo_credit_source %}{{object.image.photo_credit_source}}{%else%}luxagraf{%endif%}" > + <img src="{% get_image_by_size object.ap.image 'pic5' %}" /> </a> -{% if object.image.photo_credit_source %}<figcaption>photo by <a href="{{object.image.photo_credit_url}}">{{object.image.photo_credit_source}}</a></figcaption>{%endif%} -</figure> +</figure>{%endif%} </div> <h3 class="post--title"><a href="{{object.ap.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.ap}}{%endif%}">{{object.ap|safe|smartypants|widont}}</a> (<span class="sci">{{object.ap.scientific_name}}</span>)</h3> <time class="post--date" datetime="{{object.pub_date|date:'c'}}">Seen: {{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time> @@ -38,12 +36,6 @@ </span> </span> </p> - <div class="audio-figure">{% for recording in object.ap.recordings.all %} - <audio controls="controls"> - <source src="/media/{{recording.audio}}" /> - </audio> - <small>Audio recorded by {{recording.recorder}} on {{recording.pub_date|date:"F j, Y"}} in {{recording.location}}. <a href="{{recording.link}}">© {{recording.copyright}}</a></small> - </div>{% endfor %} </article> {% endfor %} </main> <nav class="pagination"> |