feat: add seo, title,img,desc

This commit is contained in:
Petr 2023-12-22 14:02:31 +01:00
parent b229c2e684
commit 6ddbac489e
3 changed files with 21 additions and 2 deletions

View File

@ -1,8 +1,11 @@
<script setup lang="ts"> <script setup lang="ts">
useHead({ useHead({
title: 'Web 3 Privacy', titleTemplate: (titleChunk) => {
return titleChunk
? `${titleChunk} - Web3-Privacy`
: 'Web3-Privacy'
},
}) })
const { fetchData } = useData() const { fetchData } = useData()
await fetchData() await fetchData()

View File

@ -1,4 +1,12 @@
<script lang="ts" setup> <script lang="ts" setup>
useHead({
title: 'Dashboard',
})
useSeoMeta({
ogTitle: 'Dashboard',
ogDescription: 'There are challenges in finding crucial technical details and comparing various privacy-focused projects.',
ogImage: '/web3privacy_eye.webp',
})
const { filteredProjects } = storeToRefs(useData()) const { filteredProjects } = storeToRefs(useData())
</script> </script>

View File

@ -20,6 +20,14 @@ if (!project.value) {
fatal: true, fatal: true,
}) })
} }
useHead({
title: project.value.name,
})
useSeoMeta({
ogTitle: project.value.name,
ogDescription: project.value.description,
ogImage: project.logos?.at(0)?.url,
})
</script> </script>
<template> <template>