This commit is contained in:
@ -2,6 +2,8 @@
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import { getCollection } from "astro:content";
|
||||
import { useTranslatedPath } from "@i18n/utils";
|
||||
import SmallCard from "@components/SmallCard.astro";
|
||||
import SmallGrid from "@components/SmallGrid.astro";
|
||||
|
||||
const collections = ["blog", "photos", "projects"] as const;
|
||||
|
||||
@ -48,18 +50,15 @@ const posts = allPosts.filter((post) => {
|
||||
|
||||
<Layout title="Max Richter">
|
||||
<article>
|
||||
<h1>Tags</h1>
|
||||
{posts.length}
|
||||
<div class="flex flex-col gap-2">
|
||||
<h1>Tag: {tag}</h1>
|
||||
<SmallGrid>
|
||||
{
|
||||
posts.map((post) => {
|
||||
return (
|
||||
<a href={tp("/" + post.collection + "/" + post.slug)}>
|
||||
{post.slug}
|
||||
</a>
|
||||
<SmallCard post={post} />
|
||||
);
|
||||
})
|
||||
}
|
||||
</div>
|
||||
</SmallGrid>
|
||||
</article>
|
||||
</Layout>
|
||||
|
Reference in New Issue
Block a user