mirror of
https://github.com/zaaarf/friendenstein.git
synced 2024-11-22 23:44:53 +01:00
8 lines
482 B
HTML
8 lines
482 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 %}
|
|
<center><img src="{{ src | safe }}"{% if alt %} alt="{{ alt }}"{% endif %} class="{% if position %}{{ position }}{% else -%} center {%- endif %}" {%- if style %} style="border-radius: 8px; {{ style | safe }}" {%- endif %} /></center>
|
|
{% endif %}
|