Skip to content

Commit

Permalink
image template upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
markwkidd committed Feb 7, 2025
1 parent 68f4d09 commit ab1df4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions _includes/embed_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
{%- endif -%}
{%- if include.link -%}
<a href="{{- include.link -}}">
{%- elseif 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 -%}">
{%- if include.link -%}
</a>
{%- endif -%}
{%- if include.thumbnail == "true" -%}
</a>
{%- endif -%}
{% if include.caption %}
<figcaption>{{-include.caption-}}</figcaption>
</figure>
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ nav_order: 10

{% include embed_image.html
url="assets/images/gts-landing-splash-1000x490.png"
width="66%"
width="50%"
alt="Inspiring a shift in agriculture towards adaptation, community, and diversity"
%}

Expand Down

0 comments on commit ab1df4a

Please sign in to comment.