diff --git a/_bibliography/papers.bib b/_bibliography/papers.bib index 7ed262b..20da768 100644 --- a/_bibliography/papers.bib +++ b/_bibliography/papers.bib @@ -8,7 +8,8 @@ title={Investigations on the Theory of the Brownian Movement}, author={Einstein, Albert}, year={1956}, - publisher={Courier Corporation,} + publisher={Courier Corporation,}, + preview={brownian-motion.gif}, } @article{einstein1950meaning, diff --git a/_config.yml b/_config.yml index 8f69a13..75f5465 100644 --- a/_config.yml +++ b/_config.yml @@ -232,7 +232,7 @@ scholar: query: "@*" -filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, selected, supp, blog, code, poster, slides, website] # Filter out certain bibtex entry keywords used internally from the bib output +filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, selected, supp, blog, code, poster, slides, website, preview] # Filter out certain bibtex entry keywords used internally from the bib output # ----------------------------------------------------------------------------- # Responsive WebP Images diff --git a/_layouts/bib.html b/_layouts/bib.html index c57bff3..f0d7fce 100644 --- a/_layouts/bib.html +++ b/_layouts/bib.html @@ -2,8 +2,14 @@ ---
-
- {%- if entry.abbr -%} +
+ {%- if entry.preview -%} + {% if entry.preview contains '://' -%} + + {%- else -%} + + {%- endif -%} + {%- elsif entry.abbr -%} {%- if site.data.venues[entry.abbr] -%} {{entry.abbr}} {%- else -%} diff --git a/_sass/_base.scss b/_sass/_base.scss index cc13cb5..0c00258 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -461,6 +461,11 @@ footer.sticky-bottom { li { margin-bottom: 1rem; + .preview { + width: 100%; + min-width: 80px; + max-width: 200px; + } .abbr { height: 2rem; margin-bottom: 0.5rem; diff --git a/assets/img/publication_preview/brownian-motion.gif b/assets/img/publication_preview/brownian-motion.gif new file mode 100644 index 0000000..3b25fa4 Binary files /dev/null and b/assets/img/publication_preview/brownian-motion.gif differ