Skip to content

Commit

Permalink
bib update
Browse files Browse the repository at this point in the history
  • Loading branch information
luiz-ladeira committed Oct 21, 2023
1 parent 495c3e6 commit 45a7750
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _layouts/bib.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
<div class="col-sm-2 {% if entry.preview %}preview{% else %}abbr{% endif %}">
{%- if entry.preview -%}
{% if entry.preview contains '://' -%}
<img data-zoomable class="preview z-depth-1 rounded" src="{{ entry.preview }}">
<img 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 Expand Up @@ -168,6 +167,13 @@
{%- if entry.code %}
<a href="{{ entry.code }}" class="btn btn-sm z-depth-0" role="button">Code</a>
{%- endif %}
{%- if entry.video %}
{% if entry.video contains '://' -%}
<a href="{{ entry.video }}" class="btn btn-sm z-depth-0" role="button">Video</a>
{%- else -%}
<a href="{{ entry.video | prepend: '/assets/video/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">Video</a>
{%- endif %}
{%- endif %}
{%- if entry.poster %}
{% if entry.poster contains '://' -%}
<a href="{{ entry.poster }}" class="btn btn-sm z-depth-0" role="button">Poster</a>
Expand Down

0 comments on commit 45a7750

Please sign in to comment.