Change /talks to /presentations

This commit is contained in:
Oliver Davies 2024-09-02 18:00:00 +01:00
parent 8158c679fd
commit 37603296f0
91 changed files with 168 additions and 166 deletions

View file

@ -0,0 +1,25 @@
{% if events %}
<section>
<h2>Events</h2>
<ul>
{% for event in events %}
<li>
{% if event.url %}
<a href="{{ event.url }}">{{ event.name }}</a>
{% else %}
{{ event.name }}
{% endif %}
{% if event.location and not event.online %}
in {{ event.location }}
{% endif %}
- {{ event.date|date('F jS, Y') }}
{{ event.online ? '(online)' }}
</li>
{% endfor %}
</ul>
</section>
{% endif %}

View file

@ -0,0 +1,15 @@
{% if speakerdeck.id %}
<section>
<h2>Slides</h2>
<div>
<noscript>**Please enable JavaScript to view slides.**</noscript>
<script
class="speakerdeck-embed"
data-id="{{ speakerdeck.id }}"
data-ratio="{{ speakerdeck.ratio ?? '1.29456384323641' }}"
src="//speakerdeck.com/assets/embed.js"
></script>
</div>
</section>
{% endif %}

View file

@ -0,0 +1,20 @@
{% if video.id %}
<section>
<h2>Video</h2>
<div>
{% if video.type == 'vimeo' %}
<div>
<iframe
allowfullscreen
class="w-full border border-gray-500 aspect-[16/9]"
frameborder="0"
src="https://player.vimeo.com/video/{{ video.id }}"
></iframe>
</div>
{% elseif video.type == 'youtube' %}
{% include 'youtube-video.html.twig' with { id: video.id } %}
{% endif %}
</div>
</section>
{% endif %}