mirror of
https://github.com/TheAnachronism/docspell.git
synced 2024-11-13 02:31:10 +00:00
11 lines
321 B
HTML
11 lines
321 B
HTML
<figure class="image">
|
|
{% if page is defined %}
|
|
{% set len = page.components | length %}
|
|
{% set p = page.components | slice(end=len - 1) | join(sep='/') %}
|
|
{% else %}
|
|
{% set p = section.components | join(sep='/') %}
|
|
{% endif %}
|
|
|
|
<img src="{{ get_url(path=p ~ "/" ~ file) }}">
|
|
</figure>
|