mirror of
https://github.com/Dichgrem/Blog.git
synced 2025-02-23 05:58:36 -05:00
9 lines
476 B
HTML
9 lines
476 B
HTML
![]() |
{% if src %}
|
||
|
{# If the image's URL is internal to the site... #}
|
||
|
{% if src is not starting_with("http") %}
|
||
|
{# ... then prepend the site's base URL to the image's URL. #}
|
||
|
{% set src = config.base_url ~ src %}
|
||
|
{% endif %}
|
||
|
<img src="{{ src | safe }}"{% if alt %} alt="{{ alt }}"{% endif %} class="{% if position %}{{ position }}{% else -%} center {%- endif %}" {%- if style %} style="{{ style | safe }}" {%- endif %} decoding="async" loading="lazy"/>
|
||
|
{% endif %}
|