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

48 lines
1.2 KiB
Twig
Raw Normal View History

2017-08-06 18:01:22 +00:00
{% extends 'page' %}
2017-07-11 00:08:32 +00:00
{% block content_wrapper %}
2017-08-06 18:01:22 +00:00
<div>
2017-07-11 00:08:32 +00:00
{% block content %}{% endblock %}
</div>
{% if page.slides.embed %}
2017-09-04 16:55:53 +00:00
<div class="mt2">
2017-07-11 00:08:32 +00:00
<h2>Slides</h2>
2017-08-06 18:01:22 +00:00
<div class="talk-slides">
2017-07-11 00:08:32 +00:00
{{ page.slides.embed|raw }}
2017-08-06 18:01:22 +00:00
</div>
</div>
2017-07-11 00:08:32 +00:00
{% endif %}
{% if page.video.embed %}
2017-09-04 16:55:53 +00:00
<div class="mt2">
2017-07-11 00:08:32 +00:00
<h2>Video</h2>
2017-09-04 16:55:53 +00:00
<div class="video w-100 relative">
2017-07-11 00:08:32 +00:00
{{ page.video.embed|raw }}
</div>
2017-08-06 18:01:22 +00:00
</div>
2017-07-11 00:08:32 +00:00
{% endif %}
2017-09-04 16:55:53 +00:00
<div class="mt4">
2017-07-11 00:08:32 +00:00
<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,
} %}
2017-08-06 18:01:22 +00:00
</div>
2017-07-11 00:08:32 +00:00
{% endblock %}