This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_layouts/talk.html.twig

52 lines
1.3 KiB
Twig

{% extends 'page' %}
{% block content_wrapper %}
<div>
{% block content %}{% endblock %}
</div>
{% if page.slides.embed %}
<div class="mt2">
<h2>Slides</h2>
<div class="slides w-100 bg-center">
{{ page.slides.embed|raw }}
</div>
</div>
{% endif %}
{% if page.video.embed %}
<div class="mt2">
<h2>Video</h2>
<div class="video w-100 pa0 relative">
{{ page.video.embed|raw }}
</div>
</div>
{% endif %}
<div class="mt4">
<h2>Events</h2>
{% set events = [] %}
{% for date in site.events.dates %}
{% set key = (date.talk.id is defined) ? date.talk.id : date.talk %}
{% set talk = (page.id is defined) ? page.id : page.url|split('/')|last %}
{% if key == talk %}
{% set events = events|merge([{
date: date,
event: site.events.events[date.event],
}]) %}
{% endif %}
{% endfor %}
{% include 'talks-table' with {
events: events,
talk_page: true,
} %}
</div>
{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ site.url }}/assets/css/talk.css">
{% endblock %}