Publication image zoom (#1554)
Fixes #1552 --------- Signed-off-by: George Araujo <george.gcac@gmail.com>
This commit is contained in:
parent
40505f4c5d
commit
c2019498d3
|
|
@ -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 -%}
|
||||
|
|
|
|||
Loading…
Reference in New Issue