diff --git a/templates/macros/list_posts.html b/templates/macros/list_posts.html
index 0de34be7..ae7584a0 100644
--- a/templates/macros/list_posts.html
+++ b/templates/macros/list_posts.html
@@ -97,6 +97,7 @@
{% if post.extra.local_image or post.extra.remote_image %}
+
{% if post.extra.local_image %}
{% if post.extra.local_image_dark %}
{# Show light image only in light mode, dark image only in dark mode #}
@@ -114,13 +115,17 @@
{% if meta.width %}width="{{ meta.width }}"{% endif %}
{% if meta.height %}height="{{ meta.height }}"{% endif %}>
{% elif post.extra.remote_image %}
-
+ {% endif %}
+
{% endif %}
-
-
- {% endif %}
{% if post.draft %}
{{ macros_translate::translate(key="draft", default="DRAFT", language_strings=language_strings) }}
diff --git a/templates/partials/cards_pages.html b/templates/partials/cards_pages.html
index c03a7d98..246a5e25 100644
--- a/templates/partials/cards_pages.html
+++ b/templates/partials/cards_pages.html
@@ -36,7 +36,15 @@
{% if meta.width %}width="{{ meta.width }}"{% endif %}
{% if meta.height %}height="{{ meta.height }}"{% endif %}>
{% elif page.extra.remote_image %}
-
+ {% endif %}
+ {% set meta = get_image_metadata(path=page.extra.remote_image_dark, allow_missing=true) %}
+
{% else %}