mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-19 01:07:39 +00:00
feat: implement dark mode support, update writing route logic, and add content entry placeholder
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<script lang="ts" setup>
|
||||
const route = useRoute();
|
||||
const { data: page } = await useAsyncData(route.path, () => {
|
||||
return queryCollection('writing').path(route.path).first();
|
||||
return queryCollection('writing')
|
||||
.path(route.path.replace('/writing/', ''))
|
||||
.first();
|
||||
});
|
||||
|
||||
if (!page.value) {
|
||||
|
||||
Reference in New Issue
Block a user