This commit is contained in:
2025-04-23 11:07:44 -03:00
parent 0d991115c2
commit 65946f61e0

View File

@@ -0,0 +1,24 @@
---
import Layout from "~/layouts/Layout.astro";
import Container from "~/components/Container.astro";
let res = await fetch("https://betaeducacao.com.br/wp-json/wp/v2/posts");
let posts = await res.json();
---
<Layout>
<Container>
{
posts.map((post) => (
<article>
<h2>
<a
href={`/blog/${post.slug}`}
set:html={post.title.rendered}
/>
</h2>
</article>
))
}
</Container>
</Layout>