2024-10-30 14:02:47 +00:00
|
|
|
<template>
|
|
|
|
<NuxtPage />
|
|
|
|
</template>
|
2024-11-06 07:59:07 +00:00
|
|
|
|
2025-01-05 17:31:55 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
import type SEOComponent from "./types/component/seoComponent";
|
|
|
|
import type Global from "./types/single/global";
|
|
|
|
|
2024-11-06 07:59:07 +00:00
|
|
|
const runtimeConfig = useRuntimeConfig();
|
|
|
|
const appTitle = runtimeConfig.public.app.title;
|
|
|
|
|
2025-01-05 17:31:55 +00:00
|
|
|
const { findOne, find } = useStrapi();
|
|
|
|
const { data: global } = await useAsyncData("global", () => findOne<Global>("global"));
|
|
|
|
|
|
|
|
const {
|
|
|
|
metaTitle, metaDescription, keywords,
|
|
|
|
} = global.value?.data?.SEO ?? ({} as SEOComponent);
|
|
|
|
|
2024-11-06 07:59:07 +00:00
|
|
|
useHead({
|
2025-01-05 17:31:55 +00:00
|
|
|
title: metaTitle ?? appTitle,
|
|
|
|
meta: [
|
|
|
|
{name: "description", content: metaDescription},
|
|
|
|
{name: "keywords", content: keywords},
|
|
|
|
]
|
2024-11-06 07:59:07 +00:00
|
|
|
});
|
|
|
|
</script>
|