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 %}">
|
<div class="col-sm-2 {% if entry.preview %}preview{% else %}abbr{% endif %}">
|
||||||
{%- if entry.preview -%}
|
{%- if entry.preview -%}
|
||||||
{% if entry.preview contains '://' -%}
|
{% 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 -%}
|
{%- else -%}
|
||||||
{%- assign entry_path = entry.preview | prepend: '/assets/img/publication_preview/' -%}
|
{%- assign entry_path = entry.preview | prepend: '/assets/img/publication_preview/' -%}
|
||||||
{% include figure.html
|
{% include figure.html
|
||||||
path=entry_path
|
path=entry_path
|
||||||
class="preview z-depth-1 rounded"
|
class="preview z-depth-1 rounded"
|
||||||
|
zoomable=true
|
||||||
alt=entry.preview -%}
|
alt=entry.preview -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- elsif entry.abbr -%}
|
{%- elsif entry.abbr -%}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue