Skip to content

Commit e89758d

Browse files
committed
add support for removing text beneath each video pointing to YT
1 parent 0b79aa8 commit e89758d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/Stream.astro

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ interface Props {
33
videoId: string;
44
videoTitle: string;
55
thumbnailTimeOrURL: string;
6+
moreVideosLink: string;
67
}
78
8-
const { videoId, videoTitle, thumbnailTimeOrURL } = Astro.props;
9+
const { videoId, videoTitle, thumbnailTimeOrURL, moreVideosLink="true" } = Astro.props;
910
1011
const customerId = "1mwganm1ma0xgnmj";
1112
const baseUrl = `https://customer-${customerId}.cloudflarestream.com/`;
@@ -39,7 +40,11 @@ if (thumbnailTimeOrURL !== undefined) {
3940
title={videoTitle}
4041
id={videoId}></iframe>
4142
</div>
42-
<a href="https://www.youtube.com/@CloudflareDevelopers" target="_blank">Watch more videos on our Developer Channel</a>
43+
44+
{moreVideosLink=="true" &&
45+
<a href="https://www.youtube.com/@CloudflareDevelopers" target="_blank">Watch more videos on our Developer Channel</a>
46+
}
47+
4348
<script is:inline src="https://embed.cloudflarestream.com/embed/sdk.latest.js"
4449
></script>
4550
<script is:inline define:vars={{ vidId: videoId, videoTitle }}>

0 commit comments

Comments
 (0)