mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Website redesign
This commit is contained in:
14
website/site/templates/shortcodes/figure2.html
Normal file
14
website/site/templates/shortcodes/figure2.html
Normal file
@ -0,0 +1,14 @@
|
||||
{% 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>
|
Reference in New Issue
Block a user