Skip to content

Commit

Permalink
image template fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markwkidd committed Feb 21, 2025
1 parent cf451f0 commit 516843e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _includes/embed_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}

Expand Down Expand Up @@ -39,7 +41,6 @@
{%- endif -%}
{%- elsif include.mode == "thumbnail" or include.mode == "gallery" -%}
{%- assign img-link = img-src -%}
{%- assign display-mode = {{include.mode}} -%}
{%- endif -%}

<div class="image-figure-wrap {%- if display-mode %} {{display-mode}}{%- endif -%}">
Expand Down

0 comments on commit 516843e

Please sign in to comment.