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"> <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.value?.logos?.at(0)?.url ?? '',
})
</script> </script>
<template> <template>