654842ba44
- nuxt.config.ts: register 'nuxt-schema-org' module + sitemap.sources=['/api/__sitemap__/urls']
- app/utils/seo-person.ts: KILLIAN_PERSON_ID + killianPerson (derived from siteConfig, email excluded)
- app/app.vue: useSchemaOrg([definePerson(killianPerson), defineWebSite({name, inLanguage})]) appended (D-12)
- Verified SSR: /fr emits JSON-LD Person @id=#killian + WebSite (curl, pas d'hydratation)
29 lines
562 B
Vue
29 lines
562 B
Vue
<script setup lang="ts">
|
|
import { killianPerson } from '~/utils/seo-person'
|
|
|
|
const { locale } = useI18n()
|
|
const head = useLocaleHead({ seo: true })
|
|
|
|
useHead({
|
|
htmlAttrs: { lang: locale },
|
|
link: computed(() => head.value.link || []),
|
|
meta: computed(() => head.value.meta || []),
|
|
})
|
|
|
|
useSchemaOrg([
|
|
definePerson(killianPerson),
|
|
defineWebSite({
|
|
name: "Killian' Dal-Cin — Hytale Plugin Developer",
|
|
inLanguage: ['fr-FR', 'en-US'],
|
|
}),
|
|
])
|
|
</script>
|
|
|
|
<template>
|
|
<UApp>
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</UApp>
|
|
</template>
|