SEO
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 30s

This commit is contained in:
2026-06-09 18:36:09 +02:00
parent 3da7424418
commit 09b44952df
23 changed files with 3652 additions and 8 deletions

View File

@@ -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()