Skip to content

Commit

Permalink
fixed template for presentations
Browse files Browse the repository at this point in the history
  • Loading branch information
albangaignard committed Sep 16, 2024
1 parent 6697636 commit 96ac33d
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions _includes/presentations.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,33 @@
<ul>
{% for presentation in presentations_by_year reversed %}
<li> [{{presentation.EventYear}}]

{% if presentation.EventBSLink %}
{% assign event-id = "/meetings/" | append: {{presentation.EventBSLink}} %}
{% assign event = site.meetings | where:"id", event-id | first %}
<a href="{{event-id}}">{{event.name}}</a>, {{event.dates}}
<!-- Bioschemas URL for the event -->
{% assign event-id = "/meetings/" | append: {{presentation.EventBSLink}} %}
{% assign event = site.meetings | where:"id", event-id | first %}
<a href="{{event-id}}">{{event.name}}</a>, {{event.dates}}
{% else %}
{% if presentation.EventURL %}
<a href="{{presentation.EventURL}}">{{presentation.EventName}}</a>
{% else %}
{{presentation.EventName}}, {{presentation.EventDate}}
{% endif %}
<!-- URL for the event -->
{% if presentation.EventURL %}
<a href="{{presentation.EventURL}}">{{presentation.EventName}}</a>
{% else %}
{{presentation.EventName}}, {{presentation.EventDate}}
{% endif %}
{% endif %}
<!-- <ul><li> -->
<!-- if multiple authors -->
{% if presentation.Presenter contains ' ' %}
{{presentation.Presenter}}.
{{presentation.Presenter}}.
{% else %}
{% assign author-id = "/people/" | append: presentation.Presenter %}
{% assign author = site.people | where:"id", author-id | first %}
<a href="{{author-id}}">{{author.first-name}} {{author.last-name}}</a>.
{% assign author-id = "/people/" | append: presentation.Presenter %}
{% assign author = site.people | where:"id", author-id | first %}
<a href="{{author-id}}">{{author.first-name}} {{author.last-name}}</a>.
{% endif %}
{{presentation.first[1]}}
(<a href="{{presentation.Slides}}">More info</a>)
{% if presentation.Slides %}
(<a href="{{presentation.Slides}}">Slides or paper</a>)
{% endif %}
<!-- </li></ul> -->
</li>
{% endfor %}
Expand Down

0 comments on commit 96ac33d

Please sign in to comment.