Skip to content

Commit

Permalink
fix: improve image output
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Jan 22, 2024
1 parent ad5a2dd commit e204f0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/shortcodes/image.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<figure>
<center>
{% if link %}<a href={{ link }}>{% endif %}
<img class="align-center page-image" src="{{ get_url(path=img, cachebust=true) }}"{% if alt %} alt="{{ alt }}"{% endif %}/>
</a>
{% if caption %}<figcaption>{{ caption }}</figcaption>{% endif %}
{%- if link %}<a href={{ link | safe }}>{%- endif %}
<img class="align-center page-image" src="{{ get_url(path=img, cachebust=true) }}"{% if alt %} alt="{{ alt | safe }}"{% endif %}/>
{%- if link %}</a>{%- endif %}
{%- if caption %}<figcaption>{{ caption | safe }}</figcaption>{%- endif %}
</center>
</figure>

0 comments on commit e204f0d

Please sign in to comment.