mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 11:54:03 +01:00
feat: integrate locale head for improved SEO and accessibility
This commit is contained in:
14
app/app.vue
14
app/app.vue
@@ -8,10 +8,24 @@ useHead({
|
||||
|
||||
const route = useRoute()
|
||||
const { messages } = useChatStore()
|
||||
const head = useLocaleHead()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UApp>
|
||||
<Html :lang="head.htmlAttrs.lang" :dir="head.htmlAttrs.dir">
|
||||
<Head>
|
||||
<template v-for="link in head.link" :key="link.key">
|
||||
<Link :id="link.key" :rel="link.rel" :href="link.href" :hreflang="link.hreflang" />
|
||||
</template>
|
||||
<template v-for="meta in head.meta" :key="meta.key">
|
||||
<Meta :id="meta.key" :property="meta.property" :content="meta.content" />
|
||||
</template>
|
||||
</Head>
|
||||
<Body>
|
||||
<slot />
|
||||
</Body>
|
||||
</Html>
|
||||
<NuxtLoadingIndicator color="#808080" />
|
||||
<AppBackground />
|
||||
<UContainer>
|
||||
|
||||
Reference in New Issue
Block a user