Merge pull request #1 from web3privacy/pb/seo

feat: add seo, title,img,desc
This commit is contained in:
MufCZ 2023-12-22 15:21:01 +01:00 committed by GitHub
commit 963ff423ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 2 deletions

View File

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

View File

@ -1,4 +1,12 @@
<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())
</script>

View File

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