Skip to content

Commit

Permalink
improve image embed
Browse files Browse the repository at this point in the history
  • Loading branch information
markwkidd committed Feb 9, 2025
1 parent c7f3f40 commit 1c5bb3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _includes/embed_image.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{%- if include.width or include.height -%}
{%- assign img-style = true -%}
{%- endif -%}
{% if include.caption %}
<figure class="caption-image {% if include.thumbnail == "true" %} third-size float-right{%- endif -%}">
{%- endif -%}
Expand All @@ -10,7 +13,7 @@
src="{{ site.baseurl }}/{{ include.url }}"
alt="{%- if include.alt -%}{{- include.alt -}}{%- else -%}WARNING: ALT TEXT NOT FOUND{%- endif -%}"
class="content-figure-image {% if include.thumbnail == "true" and include.caption == null %} third-size float-right{%- endif -%}"
{%- if include.width or include.height -%}
{% if include.width or include.height -%}
style="{%- if include.width -%}width: {{- include.width -}};{%- endif -%}{%- if include.height -%}height: {{- include.height -}};{%- endif -%}"
{% endif -%}
>
Expand Down

0 comments on commit 1c5bb3f

Please sign in to comment.