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

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

15 lines
435 B
HTML
Raw Normal View History

2022-01-27 19:23:15 +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 %}
<figure class="dark-block" title="{{ dark }}">
<img src="{{ get_url(path=p ~ "/" ~ dark) }}">
</figure>
<figure class="light-block" title="{{ light }}">
<img src="{{ get_url(path=p ~ "/" ~ light) }}" >
</figure>