From 432ba628a73a494016a2b70470d3509c5b6843a3 Mon Sep 17 00:00:00 2001 From: zloy_linux Date: Fri, 16 Jan 2026 14:24:24 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20option=20to=20invert?= =?UTF-8?q?=20images=20in=20project=20cards=20(#600)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/tabi/templates/partials/cards_pages.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/tabi/templates/partials/cards_pages.html b/themes/tabi/templates/partials/cards_pages.html index c82b1cf..8aaf1ba 100644 --- a/themes/tabi/templates/partials/cards_pages.html +++ b/themes/tabi/templates/partials/cards_pages.html @@ -18,15 +18,16 @@ {% if page.taxonomies %} data-tags="{% for tax_name, terms in page.taxonomies %}{% for term in terms | unique %}{{ term | lower }}{% if not loop.last %},{% endif %}{% endfor %}{% endfor %}" {% endif %}> + {% if page.extra.invertible_image %}{% set card_image_class = "card-image invertible-image" %}{% else %}{% set card_image_class = "card-image" %}{% endif %} {% if page.extra.local_image %} {% set meta = get_image_metadata(path=page.extra.local_image, allow_missing=true) %} - {{ page.extra.local_image }} {% elif page.extra.remote_image %} - {{ page.extra.remote_image }} {% else %}