Move all files to old/astro/
This commit is contained in:
parent
b176f4d25e
commit
cdf77e8b5f
1340 changed files with 0 additions and 0 deletions
17
old/astro/sculpin-old/source/_partials/talk/events.html.twig
Normal file
17
old/astro/sculpin-old/source/_partials/talk/events.html.twig
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% import 'helpers' as helpers %}
|
||||
|
||||
{% if events %}
|
||||
<div>
|
||||
<h2>Presented at</h2>
|
||||
|
||||
<ul class="markup mt-2 list-disc ml-5">
|
||||
{% for event in events %}
|
||||
<li>
|
||||
{{ helpers.talkEventName(event) }}
|
||||
{{ helpers.talkEventLocation(event) }}
|
||||
<span class="text-gray-800">- {{ event.date|date('jS F Y') }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
|
@ -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 %}
|
|
@ -0,0 +1,9 @@
|
|||
{% if page.speakerdeck.id and page.speakerdeck.ratio %}
|
||||
<div>
|
||||
<h2 class="mb-2">Slides</h2>
|
||||
|
||||
{% include 'speakerdeck' with {
|
||||
data: page.speakerdeck,
|
||||
} %}
|
||||
</div>
|
||||
{% endif %}
|
|
@ -0,0 +1,7 @@
|
|||
{% if page.blocks.tweets %}
|
||||
<div class="mt-6">
|
||||
<h2>Tweets</h2>
|
||||
|
||||
{{ page.blocks.tweets|raw }}
|
||||
</div>
|
||||
{% endif %}
|
28
old/astro/sculpin-old/source/_partials/talk/video.html.twig
Normal file
28
old/astro/sculpin-old/source/_partials/talk/video.html.twig
Normal file
|
@ -0,0 +1,28 @@
|
|||
{% macro videoSrc(video) %}
|
||||
{% set srcUrls = {
|
||||
youtube: '//www.youtube.com/embed',
|
||||
videopress: 'https://videopress.com/embed',
|
||||
vimeo: 'https://player.vimeo.com/video',
|
||||
} %}
|
||||
|
||||
{{ srcUrls[video.type] ~ '/' ~ video.id }}
|
||||
{% endmacro %}
|
||||
|
||||
{% from _self import videoSrc %}
|
||||
|
||||
{% if page.video.id %}
|
||||
<div class="mt-4">
|
||||
<h2 class="mb-2">Video</h2>
|
||||
|
||||
<div class="video-full">
|
||||
<iframe
|
||||
width="678"
|
||||
height="408"
|
||||
src="{{ videoSrc(page.video) }}"
|
||||
frameborder="0"
|
||||
allowfullscreen
|
||||
>
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue