diff --git a/app/components/BlogList.vue b/app/components/BlogList.vue index 68205e7..b73977c 100644 --- a/app/components/BlogList.vue +++ b/app/components/BlogList.vue @@ -3,7 +3,7 @@ const { data: posts } = await useAsyncData("blog-posts", () => { return queryCollection("blog") .select("id", "title", "description", "date", "path", "author") .order("date", "DESC") - .where("path", "NOT LIKE", "/blog") + .where("path", "<>", "/") .all(); }); diff --git a/app/components/Nav.vue b/app/components/Nav.vue index abdd3c1..3aa09ff 100644 --- a/app/components/Nav.vue +++ b/app/components/Nav.vue @@ -18,7 +18,6 @@ Docs Developers Contributors - Blog
- - diff --git a/content.config.ts b/content.config.ts index a940387..ac92d8b 100644 --- a/content.config.ts +++ b/content.config.ts @@ -5,7 +5,7 @@ export default defineContentConfig({ collections: { blog: defineCollection({ type: "page", - source: "blog/*.md", + source: "*.md", schema: z.object({ hero: property(z.object({})).inherit( "app/components/TitleSection.vue", diff --git a/content/blog/index.md b/content/index.md similarity index 100% rename from content/blog/index.md rename to content/index.md diff --git a/content/blog/new-blog.md b/content/new-blog.md similarity index 100% rename from content/blog/new-blog.md rename to content/new-blog.md