This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
<template>
|
||||
<head>
|
||||
<title>Aran Roig</title>
|
||||
<title>Aran Roig — Developer, Artist & Designer</title>
|
||||
</head>
|
||||
<div>
|
||||
<NuxtRouteAnnouncer />
|
||||
@@ -13,6 +13,21 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const { locale } = useI18n()
|
||||
|
||||
// Set global html lang attribute based on current locale
|
||||
useHead({
|
||||
htmlAttrs: {
|
||||
lang: computed(() => {
|
||||
const map: Record<string, string> = { en: 'en-US', es: 'es-ES', ca: 'ca-ES' }
|
||||
return map[locale.value] || 'en-US'
|
||||
})
|
||||
},
|
||||
meta: [
|
||||
{ name: 'author', content: 'Aran Roig' },
|
||||
{ name: 'robots', content: 'index, follow' }
|
||||
]
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
setupTheme()
|
||||
|
||||
Reference in New Issue
Block a user