Skip to content

Commit

Permalink
style image embed
Browse files Browse the repository at this point in the history
  • Loading branch information
markwkidd committed Feb 9, 2025
1 parent ffe965d commit c6ee350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/embed_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
{% endcomment %}

{% if include.caption %}
<figure class="caption-image {% if include.thumbnail == "true" %} thumbnail{%- endif -%}">
<figure class="image-figure {% if include.thumbnail == "true" %} thumbnail{%- endif -%}">
{%- endif -%}
{%- if img-link -%}
<a href="{{- img-link -}}">
{%- 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 %} thumbnail{%- endif -%}"
class="content-image-figure"
{%- if img-style == true %}
style="{%- if include.width -%}width: {{- include.width -}};{%- endif -%}{%- if include.height -%}height: {{- include.height -}};{%- endif -%}"
{% endif -%}
Expand All @@ -41,6 +41,6 @@
</a>
{%- endif -%}
{% if include.caption %}
<figcaption>{{-include.caption-}}</figcaption>
<figcaption class="image-caption">{{-include.caption-}}</figcaption>
</figure>
{%- endif -%}
1 change: 1 addition & 0 deletions _sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ ul.nav-list .nav-list-item .nav-list-link {
line-height: 0.9;
}
}


}

Expand Down

0 comments on commit c6ee350

Please sign in to comment.