More media

This commit is contained in:
2024-10-28 01:24:07 +02:00
parent 3d8aa9e608
commit 1ac313ddc4
12 changed files with 213 additions and 14 deletions

View File

@@ -5,14 +5,17 @@
<h2>{{ .Params.Title }}</h2>
<div>
{{ if eq .Params.Mediatype "talk" }}
Presented by
Presented by
{{ else if eq .Params.Mediatype "demo" }}
Presented by
Presented by
{{ else if eq .Params.Mediatype "chat" }}
Fireside chat with
Fireside chat with
{{ else if eq .Params.Mediatype "podcast" }}
A podcast hosted by
{{ end }}
{{ range .Params.Speakers }}
<a href="">{{ .name }}</a>
{{ $lastSpeaker := (add (len .Params.Speakers) -1) }}
{{ range $i, $s := .Params.Speakers }}
<a href="">{{ $s.name }}</a>{{ if not (eq $i $lastSpeaker) }},{{ end }}
{{ end }}
at
<a href="">{{ .Params.Conference }}</a>
@@ -44,7 +47,7 @@
{{ if $hasGoodSpeaker }}
<h4>About the speaker{{ if (gt (len .Params.Speakers) 1) }}s{{ end }}</h4>
{{ range .Params.Speakers }}
<div class="flex">
<div class="flex gap-8">
<div class="grow">
<div class="font-bold dark:text-white">{{ .name }}</div>
{{ if .bio }}
@@ -55,11 +58,13 @@
</div>
{{ if .image }}
{{ $imageurl := resources.Get .image }}
<div
class="rounded-full aspect-square overflow-hidden shrink-0 w-32"
style="background: url({{ $imageurl.RelPermalink }}) center top no-repeat; background-size: cover;"
title="{{ .name }}"
></div>
{{ if $imageurl}}
<div
class="rounded-full aspect-square overflow-hidden shrink-0 w-32 self-start"
style="background: url({{ $imageurl.RelPermalink }}) center top no-repeat; background-size: cover;"
title="{{ .name }}"
></div>
{{ end }}
{{ end }}
</div>
{{ end }}
@@ -67,7 +72,7 @@
{{ range .Params.Videos }}
{{ if .download_link }}
<a class="btn btn-outline-primary self-start" href="{{ .download_link }}">Download {{ .title }}</a>
<a class="btn btn-outline-primary self-start" href="{{ .download_link }}">Download video: {{ .title }}</a>
{{ end }}
{{ end }}
</div>