onders.org_zola_theme/templates/shortcodes/modal.html

20 lines
488 B
HTML
Raw Normal View History

2023-02-06 12:20:18 +01:00
{% if section %}
{% set full_path = section.path ~ path %}
{% endif %}
{% if page %}
{% set full_path = page.path ~ path %}
{% endif %}
{% set thumb = resize_image(path=full_path, width=400, height=400, op="fit") %}
<div class="item">
<a href="#{{ path }}">
<img src="{{ thumb.url }}"/>
</a>
<div class="lightbox image has-text-centered" id="{{ path }}">
<a href="#" class="close">
<span class="spacer"></span>
<img src="{{ path }}" />
</a>
</div>
</div>