oliverdavies.uk/source/_views/talk.twig

58 lines
1.6 KiB
Twig
Raw Normal View History

2016-05-27 19:00:54 +00:00
{% extends 'default' %}
2015-09-09 07:02:35 +00:00
2017-03-06 20:43:33 +00:00
{% block body_classes 'talk talk-full' %}
2016-05-13 23:55:00 +00:00
{% block content_top %}
<h1>{{ page.title }}</h1>
{% endblock %}
2015-09-09 07:02:35 +00:00
2016-05-13 23:55:00 +00:00
{% block content_wrapper %}
2017-02-19 23:05:39 +00:00
<div class="talk-description">
2017-02-19 21:14:22 +00:00
{% block content %}{% endblock %}
</div>
{% if page.slides.embed %}
<div class="talk-slides">
<h2>Slides</h2>
<div class="presentation">
{{ page.slides.embed|raw }}
</div>{# .presentation #}
</div>{# .talk-slides #}
{% endif %}
{% if page.video.embed %}
<div class="talk-video">
<h2>Video</h2>
<div class="embed-container">
{{ page.video.embed|raw }}
</div>
</div>{# .talk-video #}
{% endif %}
<div class="talk-events">
<h2>Events</h2>
{% set events = [] %}
2017-07-09 08:15:27 +00:00
{% 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 %}
2017-07-09 08:15:27 +00:00
{% include 'talks-table' with {
events: events,
talk_page: true,
} %}
</div>{# .talk-events #}
2015-12-29 00:39:54 +00:00
{% endblock %}
2017-05-21 21:04:57 +00:00
{% block stylesheets %}
<link rel="stylesheet" href="{{ site.url }}/assets/css/talk.css">
<link rel="stylesheet" href="{{ site.url }}/assets/css/talks-table.css">
{% endblock %}