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 8, 2025
1 parent ab1df4a commit 3b7649c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions _includes/embed_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
{%- endif -%}
{%- if include.link -%}
<a href="{{- include.link -}}">
{%- elseif include.thumbnail == "true" -%}
{%- 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 -%}">
{%- if include.link -%}
</a>
{%- endif -%}
{%- if include.thumbnail == "true" -%}
{%- if include.link or include.thumbnail == "true" -%}
</a>
{%- endif -%}
{% if include.caption %}
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nav_order: 10
link="https://goingtoseed.org/"
%}

### This is a project of Going to Seed.
## This is a project of Going to Seed.

{% include embed_image.html
url="assets/images/gts-landing-splash-1000x490.png"
Expand Down

0 comments on commit 3b7649c

Please sign in to comment.