Skip to content

Commit c201949

Browse files
authored
Publication image zoom (alshedivat#1554)
Fixes alshedivat#1552 --------- Signed-off-by: George Araujo <george.gcac@gmail.com>
1 parent 40505f4 commit c201949

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_layouts/bib.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
<div class="col-sm-2 {% if entry.preview %}preview{% else %}abbr{% endif %}">
66
{%- if entry.preview -%}
77
{% if entry.preview contains '://' -%}
8-
<img class="preview z-depth-1 rounded" src="{{ entry.preview }}">
8+
<img data-zoomable class="preview z-depth-1 rounded" src="{{ entry.preview }}">
99
{%- else -%}
1010
{%- assign entry_path = entry.preview | prepend: '/assets/img/publication_preview/' -%}
1111
{% include figure.html
1212
path=entry_path
1313
class="preview z-depth-1 rounded"
14+
zoomable=true
1415
alt=entry.preview -%}
1516
{%- endif -%}
1617
{%- elsif entry.abbr -%}

0 commit comments

Comments
 (0)