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 b0a0bd5 commit eb0c0c4
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
Expand Up @@ -6,7 +6,10 @@
{%- elsif include.thumbnail == "true" -%}
<a href="{{ site.baseurl }}/{{ include.url }}">
{%- endif -%}
<img 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 -%}" style="{%- if include.width -%}width: {{- include.width -}};{%- endif -%}{%- if include.height -%}height: {{- include.height -}};{%- endif -%}">
<img 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 -%}"
style="{%- if include.width -%}width: {{- include.width -}};{%- endif -%}{%- if include.height -%}height: {{- include.height -}};{%- endif -%}">
{%- if include.link or include.thumbnail == "true" -%}
</a>
{%- endif -%}
Expand Down

0 comments on commit eb0c0c4

Please sign in to comment.