Rename _includes to _partials

This commit is contained in:
Oliver Davies 2018-05-27 22:56:53 +02:00
parent c6aaf21722
commit 11d37468a8
27 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,8 @@
<div class="mt-8">
<h2>Events</h2>
{% include "talks-table" with {
talks: getAllTalks([page], site.events),
talk_page: true
} %}
</div>

View file

@ -0,0 +1,9 @@
{% if talk.speakerdeck.id %}
<div class="hidden sm:block sm:w-1/5 md:w-1/4 sm:mx-2">
<img
src="https://speakerd.s3.amazonaws.com/presentations/{{ talk.speakerdeck.id }}/slide_0.jpg"
alt="{{ talk.title }}"
class="border border-solid p-1 bg-white"
>
</div>
{% endif %}

View file

@ -0,0 +1,8 @@
{% if page.speakerdeck.id and page.speakerdeck.ratio %}
<div class="talk-slides mt-4">
<h2>Slides</h2>
<noscript>**Please enable JavaScript to view slides.**</noscript>
<script async class="speakerdeck-embed" data-id="{{ page.speakerdeck.id }}" data-ratio="{{ page.speakerdeck.ratio }}" src="//speakerdeck.com/assets/embed.js"></script>
</div>
{% endif %}

View file

@ -0,0 +1,29 @@
{% if page.youtube.id or page.vimeo.id %}
<div class="mt-4">
<h2>Video</h2>
<div class="talk-video">
{% if page.youtube.id %}
<iframe
width="678"
height="408"
src="//www.youtube.com/embed/{{ page.youtube.id }}"
frameborder="0"
allowfullscreen
>
</iframe>
{% elseif page.vimeo.id %}
<iframe
src="https://player.vimeo.com/video/{{ page.vimeo.id }}"
width="640"
height="360"
frameborder="0"
webkitallowfullscreen
mozallowfullscreen
allowfullscreen
>
</iframe>
{% endif %}
</div>
</div>
{% endif %}