Change /talks to /presentations
This commit is contained in:
parent
8158c679fd
commit
37603296f0
91 changed files with 168 additions and 166 deletions
25
source/_includes/presentation/events.html.twig
Normal file
25
source/_includes/presentation/events.html.twig
Normal 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 %}
|
15
source/_includes/presentation/slides.html.twig
Normal file
15
source/_includes/presentation/slides.html.twig
Normal 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 %}
|
20
source/_includes/presentation/video.html.twig
Normal file
20
source/_includes/presentation/video.html.twig
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue