Move sculpin-old

This commit is contained in:
Oliver Davies 2025-10-03 01:08:11 +01:00
parent 91641eb4cb
commit 628310cc6a
447 changed files with 0 additions and 0 deletions

View 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 %}

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,9 @@
{% if page.speakerdeck.id and page.speakerdeck.ratio %}
<div>
<h2 class="mb-2">Slides</h2>
{% include 'speakerdeck' with {
data: page.speakerdeck,
} %}
</div>
{% endif %}

View file

@ -0,0 +1,7 @@
{% if page.blocks.tweets %}
<div class="mt-6">
<h2>Tweets</h2>
{{ page.blocks.tweets|raw }}
</div>
{% endif %}

View 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 %}