summaryrefslogtreecommitdiff
path: root/design/templates/archives
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/archives')
-rw-r--r--design/templates/archives/gallery_list.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/design/templates/archives/gallery_list.html b/design/templates/archives/gallery_list.html
index 1ae8696..3f7bd73 100644
--- a/design/templates/archives/gallery_list.html
+++ b/design/templates/archives/gallery_list.html
@@ -1,5 +1,5 @@
{% extends 'base.html' %}
-{% load get_image_size %}
+{% load get_image_by_size %}
{% load typogrify_tags %}
{% load pagination_tags %}
@@ -33,10 +33,10 @@
<article id="image-{{forloop.counter}}" class="photo-gallery">
<a href="{{object.get_absolute_url}}" title="view images from {{ object.title }}">
<img sizes="(max-width: 1140px) 100vw"
- srcset="{% get_image_size object.thumb 'small' %} 720w,
- {% get_image_size object.thumb 'medium' %} 1140w,
- {% get_image_size object.thumb 'large' %} 2280w,"
- src="{% get_image_size object.thumb 'medium' %}" alt="{{object.title}}" ></a>
+ srcset="{% get_image_by_size object.thumb '720' %} 720w,
+ {% get_image_by_size object.thumb '1140' %} 1140w,
+ {% get_image_by_size object.thumb '2280' %} 2280w,"
+ src="{% get_image_by_size object.thumb '1140' %}" alt="{{object.title}}" ></a>
<div class="gallery-text">
<h4>{{object.title}}</h4>
<time class="dt-published published dt-updated post--date" datetime="{{object.pub_date|date:'c'}}">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time> &ndash;