From 03c94566821054af635daf893651c65981f69f6c Mon Sep 17 00:00:00 2001 From: "Mark W. Kidd" Date: Fri, 21 Feb 2025 11:37:07 -0500 Subject: [PATCH] image template fix --- _includes/embed_image.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_includes/embed_image.html b/_includes/embed_image.html index bb6dce4..7ce3a86 100644 --- a/_includes/embed_image.html +++ b/_includes/embed_image.html @@ -10,7 +10,9 @@ {%- assign img-link = false -%} {%- assign display-mode = false -%} -{%- if include.width or include.height -%} +{%- if include.mode == "thumbnail" or include.mode == "gallery" -%} + {%- assign display-mode = {{include.mode}} -%} +{%- elsif include.width or include.height -%} {%- assign img-style = true -%} {%- endif -%} @@ -39,7 +41,6 @@ {%- endif -%} {%- elsif include.mode == "thumbnail" or include.mode == "gallery" -%} {%- assign img-link = img-src -%} - {%- assign display-mode = {{include.mode}} -%} {%- endif -%}