🚚 Move post to newsletter

This commit is contained in:
2024-03-25 23:51:38 +08:00
parent 28c2793a41
commit e9762fa43f
3 changed files with 9 additions and 3 deletions

View File

@@ -45,4 +45,8 @@ const route = useRoute();
const { data: post } = await useAsyncData("post", () =>
queryContent("posts").where({ slug: route.params.slug }).findOne()
);
definePageMeta({
alias: ["/posts/:slug", "/n/:slug"]
})
</script>

View File

@@ -31,4 +31,8 @@
const { data: posts } = await useAsyncData("posts", () =>
queryContent("posts").find()
);
definePageMeta({
alias: ["/posts"]
})
</script>