{% if thumb_lg_url and thumb_sm_url %} {# resize with imagekit #} {% else %} {# resize with css #} {% endif %}