mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
feat: add seo, title,img,desc
This commit is contained in:
parent
b229c2e684
commit
6ddbac489e
3 changed files with 21 additions and 2 deletions
7
app.vue
7
app.vue
|
@ -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()
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue