You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
654 B
HTML
27 lines
654 B
HTML
{% if not width %}
|
|
{% set width = 240 %}
|
|
{% endif %}
|
|
{% if not height %}
|
|
{% if width %}
|
|
{% set height = width %}
|
|
{% else %}
|
|
{% set height = 180 %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if not op %}
|
|
{% set op = 'fill' %}
|
|
{% endif %}
|
|
|
|
{% if caption %}
|
|
<figure>
|
|
<a href="{{ get_url(path=path) }}"><img src="{{ resize_image(path=path, width=width, height=height, op=op) }}"/></a>
|
|
<figcaption>{{ caption }}</figcaption>
|
|
</figure>
|
|
{% elif figure %}
|
|
<figure>
|
|
<img src="{{ resize_image(path=path, width=width, height=height, op=op) }}"/>
|
|
</figure>
|
|
{% else %}
|
|
<img src="{{ resize_image(path=path, width=width, height=height, op=op) }}"/>
|
|
{% endif %}
|