Fix titles

This commit is contained in:
2024-06-21 16:06:19 +02:00
parent fc7b98afdd
commit 1ecc28f0c4
2 changed files with 5 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
<script lang="ts" setup> <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.' 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({ useSeoMeta({
title: 'Arthur Danjou - Mathematics Lover and IA Enthusiast', title: 'Arthur Danjou | Mathematics Lover and IA Enthusiast',
description description
}) })
</script> </script>

View File

@@ -14,6 +14,10 @@ const { copy, copied } = useClipboard({
source: `https://arthurdanjou.fr/writing/${route.params.slug}`, source: `https://arthurdanjou.fr/writing/${route.params.slug}`,
copiedDuring: 4000 copiedDuring: 4000
}) })
useHead({
title: `${post.value!.title ?? 'Untitled'} | Arthur Danjou`
})
</script> </script>
<template> <template>