chore: tipoak konpontzen ditu

This commit is contained in:
txarli committed 2026-10-18 13:56:29 +02:00
1 parent 0f435de542
commit 270b7fa3e4
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import { defineCollection, z } from "astro:content";
import { defineCollection } from "astro:content";
import { z } from "astro/zod";
import { glob } from "astro/loaders";
+2 -2
View File
@@ -1,9 +1,9 @@
---
import { getCollection, render } from "astro:content";
import { CollectionEntry, getCollection, render } from "astro:content";
import BlogPost from "../../layouts/BlogPost.astro";
export async function getStaticPaths() {
let posts = await getCollection("posts");
const posts: CollectionEntry<"posts">[] = await getCollection("posts");
return posts.map((post) => {
return {