Skip to content

Commit

Permalink
Publication image zoom (alshedivat#1554)
Browse files Browse the repository at this point in the history
Fixes alshedivat#1552

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
  • Loading branch information
george-gca authored Jul 12, 2023
1 parent 7650dfd commit 2720a5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _layouts/bib.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 2720a5a

Please sign in to comment.