Publication image zoom (#1554)

Fixes #1552

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
This commit is contained in:
George 2023-07-12 14:06:57 -03:00 committed by GitHub
parent 40505f4c5d
commit c2019498d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -5,12 +5,13 @@
<div class="col-sm-2 {% if entry.preview %}preview{% else %}abbr{% endif %}">
{%- if entry.preview -%}
{% if entry.preview contains '://' -%}
<img class="preview z-depth-1 rounded" src="{{ entry.preview }}">
<img data-zoomable class="preview z-depth-1 rounded" src="{{ entry.preview }}">
{%- else -%}
{%- assign entry_path = entry.preview | prepend: '/assets/img/publication_preview/' -%}
{% include figure.html
path=entry_path
class="preview z-depth-1 rounded"
zoomable=true
alt=entry.preview -%}
{%- endif -%}
{%- elsif entry.abbr -%}