Skip to content

Commit

Permalink
Use figure for bib entry preview (alshedivat#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demi-wlw committed Mar 11, 2023
1 parent ad3d165 commit 08b05c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _layouts/bib.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
{% if entry.preview contains '://' -%}
<img class="preview z-depth-1 rounded" src="{{ entry.preview }}">
{%- else -%}
<img class="preview z-depth-1 rounded" src="{{ entry.preview | prepend: '/assets/img/publication_preview/' | relative_url }}">
{%- assign entry_path = entry.preview | prepend: '/assets/img/publication_preview/' -%}
{% include figure.html
path=entry_path
class="preview z-depth-1 rounded"
alt=entry.preview -%}
{%- endif -%}
{%- elsif entry.abbr -%}
{%- if site.data.venues[entry.abbr] -%}
Expand Down

0 comments on commit 08b05c0

Please sign in to comment.