Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions snippets/image.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
{% endcomment %}

{%- assign image_url = image.url -%}
{%- assign image_url_lower = image_url | downcase -%}
{%- assign image_url_mobile = image_mobile.url -%}

{%- if image_url != blank or image_url_mobile != blank -%}
Expand Down Expand Up @@ -243,14 +244,14 @@
{%- for type in featured_types -%}
{%- assign image_type = '.' | append: type -%}

{%- if featured_type == '' and image_url contains image_type -%}
{%- if featured_type == '' and image_url_lower contains image_type -%}
{%- assign featured_type = image_type -%}
{%- break -%}
{%- endif -%}
{%- endfor -%}

{% comment %} convert images to the most in-demand formats {% endcomment %}
{%- if featured_type != blank and image_url contains featured_type -%}
{%- if featured_type != blank and image_url_lower contains featured_type -%}
{%- assign src_jpg = '' -%}
{%- assign src_png = '' -%}
{%- assign src_webp = '' -%}
Expand Down