16 lines
361 B
Vue
16 lines
361 B
Vue
<template>
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</template>
|
|
<script setup>
|
|
const route = useRoute();
|
|
useHead({
|
|
// or as a function
|
|
titleTemplate: (productCategory) => {
|
|
return productCategory ? `${productCategory} - Site Title` : 'Site Title';
|
|
},
|
|
meta: [{ property: 'og:title', content: `App Name - ${route.meta.title}` }],
|
|
});
|
|
</script>
|