add site
This commit is contained in:
@@ -7,9 +7,6 @@ import { Clients } from "~/components/Course";
|
||||
import Search from "./_components/Search.astro";
|
||||
|
||||
import mulhercomepi from "~/assets/mulher-com-epi.png";
|
||||
|
||||
let res = await fetch("https://betaeducacao.com.br/wp-json/wp/v2/posts");
|
||||
let posts = await res.json();
|
||||
---
|
||||
|
||||
<Layout>
|
||||
@@ -68,26 +65,5 @@ let posts = await res.json();
|
||||
</Container>
|
||||
|
||||
<Clients />
|
||||
|
||||
<Container>
|
||||
<section>
|
||||
<h1 class="text-pretty font-semibold text-4xl">
|
||||
Últimos posts
|
||||
</h1>
|
||||
|
||||
{
|
||||
posts.map((post) => (
|
||||
<article>
|
||||
<h2>
|
||||
<a
|
||||
href={`/blog/${post.slug}`}
|
||||
set:html={post.title.rendered}
|
||||
/>
|
||||
</h2>
|
||||
</article>
|
||||
))
|
||||
}
|
||||
</section>
|
||||
</Container>
|
||||
</div>
|
||||
</Layout>
|
||||
|
||||
Reference in New Issue
Block a user