feat: some shit
This commit is contained in:
@ -3,6 +3,7 @@ import { getCollection } from "astro:content";
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import { getLocale } from "astro-i18n-aut";
|
||||
import { filterCollection } from "@i18n/utils";
|
||||
import HeroCard from "@components/HeroCard.astro";
|
||||
|
||||
const locale = getLocale(Astro.url);
|
||||
const pages = await getCollection("projects");
|
||||
@ -10,16 +11,5 @@ const posts = filterCollection(pages, locale);
|
||||
---
|
||||
|
||||
<Layout title="Dude">
|
||||
<hr />
|
||||
{
|
||||
posts.map((post) => (
|
||||
<>
|
||||
<>
|
||||
<a href={"projects/" + post.slug.split("/")[0]}>{post.data.title}</a>
|
||||
<br />
|
||||
</>
|
||||
</>
|
||||
))
|
||||
}
|
||||
<hr />
|
||||
{posts.map((post) => <HeroCard post={post} />)}
|
||||
</Layout>
|
||||
|
Reference in New Issue
Block a user