diff --git a/src/components/ListadoPostsHorizontal.astro b/src/components/ListadoPostsHorizontal.astro index bf2fab9..c54aa67 100644 --- a/src/components/ListadoPostsHorizontal.astro +++ b/src/components/ListadoPostsHorizontal.astro @@ -1,61 +1,57 @@ --- import { getCollection } from "astro:content"; - const posts = await getCollection("posts"); // Selecciona 3 posts aleatorios const selectedPosts = posts.sort(() => Math.random() - 0.5).slice(0, 3); --- -