diff --git a/templates/macros/cards_pages.html b/templates/macros/cards_pages.html index bb37cc114..4d73a8951 100644 --- a/templates/macros/cards_pages.html +++ b/templates/macros/cards_pages.html @@ -7,7 +7,7 @@ {% endif %} {% if page.extra.local_image %} - {% set meta = get_image_metadata(path=page.extra.local_image) %} + {% set meta = get_image_metadata(path=page.extra.local_image, allow_missing=true) %} {{ {% elif page.extra.remote_image %} {{ diff --git a/templates/shortcodes/dimmable_image.html b/templates/shortcodes/dimmable_image.html index 05304f9be..9e61ab54a 100644 --- a/templates/shortcodes/dimmable_image.html +++ b/templates/shortcodes/dimmable_image.html @@ -1,2 +1,2 @@ -{% set meta = get_image_metadata(path=src) %} +{% set meta = get_image_metadata(path=src, allow_missing=true) %} diff --git a/templates/shortcodes/dual_theme_image.html b/templates/shortcodes/dual_theme_image.html index d97ea2a9e..fa24dec18 100644 --- a/templates/shortcodes/dual_theme_image.html +++ b/templates/shortcodes/dual_theme_image.html @@ -1,4 +1,4 @@ -{% set light_meta = get_image_metadata(path=light_src) %} -{% set dark_meta = get_image_metadata(path=dark_src) %} +{% set light_meta = get_image_metadata(path=light_src, allow_missing=true) %} +{% set dark_meta = get_image_metadata(path=dark_src, allow_missing=true) %} diff --git a/templates/shortcodes/invertible_image.html b/templates/shortcodes/invertible_image.html index 25d3c66be..8a7e20ae4 100644 --- a/templates/shortcodes/invertible_image.html +++ b/templates/shortcodes/invertible_image.html @@ -1,2 +1,2 @@ -{% set meta = get_image_metadata(path=src) %} +{% set meta = get_image_metadata(path=src, allow_missing=true) %}