diff options
author | lxf <sng@luxagraf.net> | 2019-03-19 02:53:32 +0000 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2019-03-19 02:53:32 +0000 |
commit | b12c4fb4128ba4d365d542ca93b6959cd321f762 (patch) | |
tree | 64b677c54984280af99c41091d61b3a97f217052 /design/templates | |
parent | d9623d5fed7e5474ca3f26e803f60411883719ab (diff) |
fixed template bug with portrait images
Diffstat (limited to 'design/templates')
-rw-r--r-- | design/templates/lib/img_picfull.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/design/templates/lib/img_picfull.html b/design/templates/lib/img_picfull.html index 19cfb36..0a1ffca 100644 --- a/design/templates/lib/img_picfull.html +++ b/design/templates/lib/img_picfull.html @@ -2,7 +2,7 @@ {% load get_image_width %} {% if caption %} <figure class="picfull">{%endif%} -<a href="{%get_image_by_size image "original"%} " title="view larger image"><img class="picfull" sizes="(max-width: 750px) 100vw, (min-width: 751) 750px" srcset="{% for size in image.sizes.all%}{% get_image_by_size image size.name %} {% if image.is_portait %}{% get_image_width image size.height %}w{%else%}{{size.width}}w{%endif%}{% if forloop.last%}"{%else%}, {%endif%}{%endfor%} +<a href="{%get_image_by_size image "original"%} " title="view larger image"><img class="picfull" sizes="(max-width: 750px) 100vw, (min-width: 751) 750px" srcset="{% for size in image.sizes.all%}{% get_image_by_size image size.name %} {{size.width}}w {% if forloop.last%}"{%else%}, {%endif%}{%endfor%} {% for size in image.sizes.all%}{%if forloop.first %} src="{% get_image_by_size image size.name %}"{%endif%}{%endfor%} alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}" data-jslghtbx="{%get_image_by_size image "original"%}" data-jslghtbx-group="group" {% if caption%}data-jslghtbx-caption="{{image.caption}}"{%endif%}></a> {% if caption %}<figcaption>{{image.caption|safe}}</figcaption> </figure> |