Skip to content

Commit

Permalink
template
Browse files Browse the repository at this point in the history
  • Loading branch information
markwkidd committed Dec 9, 2024
1 parent 4e26f41 commit e8e91ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ Images can be embedded using standard Markdown syntax, but this offers limited f
{% include embed_image.html
url="/assets/images/cucurbita/argyrosperma/cushaw-homepage-banner-1000x250.png"
alt="College of Cucurbita argyrosperma fruit in various situations"
caption="Sometimes a caption adds valuable information that can't easily be conveyed any other way."
%}

#### Source
Expand Down
4 changes: 2 additions & 2 deletions _includes/embed_image.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% if include.caption %}
<figure class="caption-image">
<img src="{{ site.baseurl }}{{ include.url }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %} {% if include.width %} height="{{ include.height }}" {% endif %}class="content-figure-image">
<img src="{{ site.baseurl }}{{ include.url }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %} {% if include.height %} height="{{ include.height }}" {% endif %} class="content-figure-image">
<figcaption>{{ include.caption }}</figcaption>
</figure>
{% else %}
<img src="{{ site.baseurl }}{{ include.url }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %} class="content-image">
<img src="{{ site.baseurl }}{{ include.url }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %} class="content-image">
{% endif %}

0 comments on commit e8e91ba

Please sign in to comment.