feat: add YouTube embedding support with lite-youtube-embed and create remarkYouTube plugin

This commit is contained in:
2026-03-25 09:15:12 +09:00
parent 9421ecd257
commit 9e42996677
5 changed files with 62 additions and 0 deletions
+4
View File
@@ -6,6 +6,7 @@ import Categories from "@/components/ui/Categories.astro";
import Destinations from "@/components/ui/Destinations.astro";
import { toR2Url } from "@/utils/r2";
import Picture from "@/components/ui/Picture.astro";
import "lite-youtube-embed/src/lite-yt-embed.css";
import { getCollection, render, type CollectionEntry } from "astro:content";
@@ -119,4 +120,7 @@ const metadata = {
}
</div>
</section>
<script>
import "lite-youtube-embed/src/lite-yt-embed.js";
</script>
</BaseLayout>