Skip to content

Commit a7c17b4

Browse files
committed
Adding another blog post from LinkedIn
Contains a YouTube video, so show this instead of the image at the top of the post Note, the image is still used in the list of blog posts so you need both
1 parent d1bff3a commit a7c17b4

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

marketing/layouts/blog/single.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,18 @@ <h4 class="flex flex-row items-center"><span class="fa-solid fa-user text-2xl mr
3131
</div>
3232
{{ end }}
3333
</section>
34-
{{ if .Params.image }}
34+
{{ if .Params.youtube }}
35+
<div class="my-4 aspect-video">
36+
<iframe
37+
src="https://www.youtube.com/embed/{{ .Params.youtube }}"
38+
title="YouTube video"
39+
allowfullscreen
40+
class="w-full h-full rounded-md border"
41+
frameborder="0"
42+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
43+
></iframe>
44+
</div>
45+
{{ else if .Params.image }}
3546
<img class="my-4" src="{{ .Params.image | absURL }}">
3647
{{ end }}
3748
<div class="content prose md:prose-lg lg:prose-xl max-w-none py-1">{{.Content}}</div>
2.71 MB
Loading

0 commit comments

Comments
 (0)