Add talks pages
This commit is contained in:
parent
09ca6183a4
commit
af093718de
41 changed files with 1277 additions and 0 deletions
52
source/_layouts/talk.html.twig
Normal file
52
source/_layouts/talk.html.twig
Normal file
|
@ -0,0 +1,52 @@
|
|||
{% extends 'page' %}
|
||||
|
||||
{% block content_wrapper %}
|
||||
{{ parent() }}
|
||||
|
||||
{% if page.speakerdeck.id %}
|
||||
<section>
|
||||
<h2>Slides</h2>
|
||||
|
||||
<div>
|
||||
<noscript>**Please enable JavaScript to view slides.**</noscript>
|
||||
<script
|
||||
class="speakerdeck-embed"
|
||||
data-id="{{ page.speakerdeck.id }}"
|
||||
data-ratio="{{ page.speakerdeck.ratio ?? '1.29456384323641' }}"
|
||||
src="//speakerdeck.com/assets/embed.js"
|
||||
></script>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
{% if page.video.type == 'youtube' and page.video.id %}
|
||||
<section>
|
||||
<h2>Video</h2>
|
||||
|
||||
{% include 'youtube-video.html.twig' with { id: page.video.id } %}
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
{% if page.events %}
|
||||
<section>
|
||||
<h2>Events</h2>
|
||||
|
||||
<ul>
|
||||
{% for event in page.events|reverse %}
|
||||
<li>
|
||||
{% if event.url %}
|
||||
<a href="{{ event.url }}">{{ event.name }}</a>
|
||||
{% else %}
|
||||
{{ event.name }}
|
||||
{% endif %}
|
||||
|
||||
in {{ event.location }}
|
||||
- {{ event.date|date('F jS, Y') }}
|
||||
|
||||
{{ event.online ? '(online)' }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue