diff --git a/src/lib/block-types.ts b/src/lib/block-types.ts
index da6f721..39962d2 100644
--- a/src/lib/block-types.ts
+++ b/src/lib/block-types.ts
@@ -168,6 +168,18 @@ export interface YoutubeVideoBlockData {
layout?: BlockLayout;
}
+/** Galerie aus YouTube-Video-Referenzen (_type: "youtube_video_gallery"). */
+export interface YoutubeVideoGalleryBlockData {
+ _type?: "youtube_video_gallery";
+ _slug?: string;
+ title?: string;
+ subtitle?: string;
+ description?: string;
+ variant?: "carousel" | "grid";
+ videos?: YoutubeVideoBlockData[];
+ layout?: BlockLayout;
+}
+
/** Zitat (_type: "quote"). */
export interface QuoteBlockData {
_type?: "quote";
diff --git a/src/lib/components/ContentRows.svelte b/src/lib/components/ContentRows.svelte
index 5f9538b..ca7418f 100644
--- a/src/lib/components/ContentRows.svelte
+++ b/src/lib/components/ContentRows.svelte
@@ -7,6 +7,7 @@
import ImageGalleryBlock from "./blocks/ImageGalleryBlock.svelte";
import FilesBlock from "./blocks/FilesBlock.svelte";
import YoutubeVideoBlock from "./blocks/YoutubeVideoBlock.svelte";
+ import YoutubeVideoGalleryBlock from "./blocks/YoutubeVideoGalleryBlock.svelte";
import QuoteBlock from "./blocks/QuoteBlock.svelte";
import QuoteCarouselBlock from "./blocks/QuoteCarouselBlock.svelte";
import LinkListBlock from "./blocks/LinkListBlock.svelte";
@@ -30,6 +31,7 @@
ImageGalleryBlockData,
FilesBlockData,
YoutubeVideoBlockData,
+ YoutubeVideoGalleryBlockData,
QuoteBlockData,
QuoteCarouselBlockData,
LinkListBlockData,
@@ -118,6 +120,8 @@
{block.subtitle}
+ {/if} + {#if descriptionHtml} +{t(T.youtube_missing)}
+ {:else if block.variant === "grid"} +{curLabel}
+ {/if} + {#if items.length > 1} +{modalIndex + 1} / {items.length}
+ {/if} +{current.video.title}
+ {/if} + {#if current.video.description} +{second.video.title}
+ {/if} + {#if second.video.description} +