@nuxtjs/seo module is installed and configured in your project.seo option is enabled in the statamic module options.The useStatamicSeo composable is used to configure SEO metadata from Statamic CMS data. It will automatically configure the SEO metadata based on the data from the Statamic CMS.
This composable automatically configures SEO settings including:
<script setup lang="ts">
const { data, error } = await useStatamicPage();
useStatamicPageErrorHandler(error);
useStatamicSeo(data);
</script>
function useStatamicSeo(
pageData: Ref<(Record<string, any> & Partial<StatamicSeoData>) | undefined>,
options: {
titleTemplate?: string;
ogImageTemplate?: string;
} = {},
): void