slightly improve writing and blog styling

This commit is contained in:
Zoe
2024-04-27 02:44:21 -05:00
parent 3f8e72f855
commit 3dc3da1bf2
6 changed files with 37 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ let year = new Date().getFullYear();
let route = useRoute();
const { data: doc } = await useAsyncData(`${route.path}-data`, () => queryContent(route.path).findOne())
if (!doc) {
if (!doc.value) {
throw createError({ statusCode: 404, statusMessage: 'Article not found', fatal: true })
}