feat: artefaktuak atala sortzen du
This commit is contained in:
1 parent
6d297f7cbe
commit
60d259a28a
6 files changed
+146
-1
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user