{% comment %} Displays an image for use in a list of things (publication, events) etc. Expects: * url - The URL to link to, default is the URL of the original thumbnail image. * field - The ImageField on the model, e.g. Publication.thumbnail * alt_text - The text to use as the image's `alt` text. {% endcomment %} {% load imagekit %} {% generateimage 'spectator:list_thumbnail' source=field as img %} {% generateimage 'spectator:list_thumbnail2x' source=field as img2x %} {% with link_url=url|default:field.url %} {{ alt_text }} {% endwith %}