feat: artefaktuak atala sortzen du

This commit is contained in:
txarli committed 2026-11-20 10:32:56 +01:00
1 parent 6d297f7cbe
commit 60d259a28a
6 files changed
+146 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
---
import { getCollection, render } from "astro:content";
import Artefaktua from "../../layouts/Artefaktua.astro";
export async function getStaticPaths() {
const artefaktuak = await getCollection("artefaktuak");
return artefaktuak.map((artefaktua) => {
return {
params: { slug: artefaktua.id },
props: { artefaktua: artefaktua },
};
});
}
const { artefaktua } = Astro.props;
const { Content } = await render(artefaktua);
---
<Artefaktua artefaktua={artefaktua}>
<Content />
</Artefaktua>