diff --git a/_bibliography/papers.bib b/_bibliography/papers.bib index 97bc49e..948f6b6 100644 --- a/_bibliography/papers.bib +++ b/_bibliography/papers.bib @@ -108,5 +108,6 @@ author={Einstein, Albert and Schrödinger, Erwin and Planck, Max and Lorentz, Hendrik Antoon and Przibram, Karl}, year={1967}, publisher={Vision}, - preview={wave-mechanics.gif} + preview={wave-mechanics.gif}, + abbr={Vision} } diff --git a/_data/venues.yml b/_data/venues.yml index 6c16ad5..4196320 100644 --- a/_data/venues.yml +++ b/_data/venues.yml @@ -4,3 +4,6 @@ "PhysRev": url: https://journals.aps.org/ + +"Vision": + color: "#009f36" diff --git a/_layouts/bib.liquid b/_layouts/bib.liquid index 3443f3a..96ddff0 100644 --- a/_layouts/bib.liquid +++ b/_layouts/bib.liquid @@ -2,7 +2,29 @@ ---
{% if site.enable_publication_thumbnails %} -
+
+ {%- if entry.abbr -%} + {%- if site.data.venues[entry.abbr] -%} + {% assign venue_style = null %} + {% if site.data.venues[entry.abbr].color != blank %} + {% assign venue_style = site.data.venues[entry.abbr].color | prepend: 'style="background-color:' | append: '"' %} + {%- endif -%} + + {% if site.data.venues[entry.abbr].url %} + {{ entry.abbr }} + {% else %} +
{{- entry.abbr -}}
+ {% endif %} +
+ {% else %} + {{ entry.abbr }} + {% endif %} + {% endif %} {% if entry.preview %} {% if entry.preview contains '://' %} @@ -14,26 +36,10 @@ path=entry_path sizes = "200px" class="preview z-depth-1 rounded" - zoomable=false + zoomable=true alt=entry.preview %} {% endif %} - {% elsif entry.abbr %} - {% if site.data.venues[entry.abbr] %} - {% assign venue_style = null %} - {% if site.data.venues[entry.abbr].color != blank %} - {% assign venue_style = site.data.venues[entry.abbr].color | prepend: 'style="background-color:' | append: '"' %} - {% endif %} - {{ entry.abbr }} - {% else %} - {{ entry.abbr }} - {% endif %} {% endif %}
{% endif %} @@ -167,7 +173,9 @@