Working on seo

This commit is contained in:
2024-07-01 00:12:34 +02:00
parent f0bcf70bf8
commit 6ad9fe6dfb
5 changed files with 15 additions and 9 deletions

View File

@@ -7,7 +7,8 @@
<script lang="ts" setup>
const description = 'I\'m Arthur, a Mathematics lover and IA enthusiast. I\'m currently studying at the University of Paris-Saclay. I\'m passionate about Mathematics, Computer Science, and Artificial Intelligence.'
useSeoMeta({
title: 'Arthur Danjou | Mathematics Lover and IA Enthusiast',
title: 'Arthur Danjou Mathematics Lover and IA Enthusiast',
titleTemplate: '%s',
description
})
</script>

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
const description = 'Software I use, gadgets I love, and other things I recommend. Heres a big list of all of my favorite stuff.'
useSeoMeta({
title: 'Things I use | Arthur Danjou',
title: 'Things I use',
description
})

View File

@@ -19,8 +19,9 @@ const { copy, copied } = useClipboard({
copiedDuring: 4000
})
useHead({
title: `${post.value!.title ?? 'Untitled'} | Arthur Danjou`
useSeoMeta({
title: post.value?.title,
description: post.value?.description
})
function getDetails() {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
const description = 'All my thoughts on programming, mathematics, artificial intelligence design, etc., are put together in chronological order. I also write about my projects, my discoveries, and my thoughts.'
useSeoMeta({
title: 'My Shelf | Arthur Danjou',
title: 'My Shelf',
description
})

View File

@@ -24,15 +24,19 @@ export default defineNuxtConfig({
app: {
pageTransition: { name: 'page', mode: 'out-in' },
head: {
htmlAttrs: { lang: 'en' }
htmlAttrs: { lang: 'en' },
templateParams: {
separator: '•'
}
}
},
site: {
url: 'https://arthurdanjou.fr',
name: 'Arthur Danjou | Mathematics Lover and IA Enthusiast',
name: 'Arthur Danjou',
description: 'I\'m Arthur, a Mathematics lover and IA enthusiast. I\'m currently studying at the University of Paris-Saclay. I\'m passionate about Mathematics, Computer Science, and Artificial Intelligence.',
defaultLocale: 'en'
defaultLocale: 'en',
trailingSlash: true
},
content: {
@@ -42,7 +46,7 @@ export default defineNuxtConfig({
},
colorMode: {
preference: 'light',
preference: 'system',
fallback: 'light'
},