Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-10-03 17:37:34 +02:00
parent dbebcd23a5
commit 6c5b561d49
11 changed files with 155 additions and 118 deletions

View File

@@ -1,4 +1,6 @@
<script lang="ts" setup>
import { useDateFormat } from '#imports'
const route = useRoute()
const { data: project } = await useAsyncData(`projects/${route.params.slug}`, () =>
queryCollection('projects').path(`/projects/${route.params.slug}`).first())
@@ -17,6 +19,8 @@ useSeoMeta({
})
const { t } = useI18n()
useSeoMeta(project.value.seo || {})
</script>
<template>