From a9e5bc00eba82130a61181c5ff40aaa62d3fdd4e Mon Sep 17 00:00:00 2001 From: Florian <45694132+flo-bit@users.noreply.github.com> Date: Sun, 26 Oct 2025 15:24:18 +0100 Subject: [PATCH] show posts in dev --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 0058921..a304f98 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -15,7 +15,7 @@ export const getProjects = async () => { export const getBlogPosts = async () => { const posts = (await getCollection("blog")) - .filter((post: any) => post.data.published) + .filter((post: any) => post.data.published || import.meta.env.MODE === "development") .sort( (a: any, b: any) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(), ); -- knotmirror 0.0.1