Skip to content

Commit

Permalink
add possible poster links on presentation page
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Aug 18, 2023
1 parent 211e51e commit c879d96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _data/presentations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
date: 05/2022
comment: This is some comment text that can do _Markdown_
slides: https://www.google.com # potential link to slides
poster: https://www.google.com # potential link to slides
hub: example-hub # potential hub page to link to
recording: https://www.youtube.com
- presentation:
title: A second presentation
event: Another conference
date: 03/2022
date: 03/2022
9 changes: 8 additions & 1 deletion _layouts/presentations.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ <h1 class="title">{{ page.title }}</h1>
[<a href="{{ presentation.slides | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" title="Slides">Slides</a>]
{%- endif %}
{%- endif %}
{%- if presentation.poster %}
{% if presentation.poster contains '://' -%}
[<a href="{{ presentation.poster }}" class="btn btn-sm z-depth-0" role="button" title="Poster">Poster</a>]
{%- else -%}
[<a href="{{ presentation.poster | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" title="Poster">Poster</a>]
{%- endif %}
{%- endif %}
{%- if presentation.recording %}
[<a href="{{ presentation.recording }}" class="btn btn-sm z-depth-0" role="button">Recording</a>]
{%- endif %}
Expand All @@ -28,4 +35,4 @@ <h1 class="title">{{ page.title }}</h1>
</li>
{% endfor %}
</ol>
</div>
</div>

0 comments on commit c879d96

Please sign in to comment.