Skip to content

Commit 5448329

Browse files
exclude index.md from blog
1 parent 8e8f562 commit 5448329

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/pages/blog/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242
});
4343
4444
const { data: articles } = await useAsyncData("blogposts", () =>
45-
queryCollection("blog").where("id", "NOT LIKE", "%.draft.md").where("id", "NOT LIKE", "index.md").select("id", "meta", "path", "title", "description").all()
45+
queryCollection("blog")
46+
.where("id", "NOT LIKE", "%.draft.md")
47+
.where("title", "NOT LIKE", "Placeholder")
48+
.select("id", "meta", "path", "title", "description")
49+
.all()
4650
);
4751
4852
useSeoMeta({

0 commit comments

Comments
 (0)