docspell/website/site/templates/shortcodes/figure.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
308 B
HTML
Raw Normal View History

2022-01-27 19:23:15 +00:00
<figure>
2020-08-21 22:18:56 +00:00
{% 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 %}
2022-01-27 19:23:15 +00:00
<img src="{{ get_url(path=p ~ "/" ~ file) }}" >
2020-07-27 20:13:22 +00:00
</figure>