From 08b05c0f0084bcd7ed360c0662ba9592f0bee661 Mon Sep 17 00:00:00 2001
From: Demi-wlw <88136271+Demi-wlw@users.noreply.github.com>
Date: Sat, 11 Mar 2023 11:32:34 +0000
Subject: [PATCH] Use figure for bib entry preview (#1152)
---
_layouts/bib.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/_layouts/bib.html b/_layouts/bib.html
index c62d55578a86..2f83cc6c5053 100644
--- a/_layouts/bib.html
+++ b/_layouts/bib.html
@@ -7,7 +7,11 @@
{% if entry.preview contains '://' -%}
{%- else -%}
-
+ {%- 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] -%}