- {post.data.title} -{" "}
- {post.data.pubDate.toDateString()}
-
-
- {post.data.description}
- -
diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..7773828 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +dist/ \ No newline at end of file diff --git a/src/components/blogList.astro b/src/components/blogList.astro deleted file mode 100644 index 82f006c..0000000 --- a/src/components/blogList.astro +++ /dev/null @@ -1,31 +0,0 @@ ---- -import { getCollection } from "astro:content"; - -const posts = (await getCollection("blog")) - .filter( - (entry) => !entry.data.wip || process.env.NODE_ENV === "development" - ) - .sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); ---- - -