Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Apr 15, 2024
1 parent 9aadb7d commit 4d5cdc7
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions packages/ui/components/DataFeedDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,71 @@ watch(
},
{ deep: true },
)
useHead({
title: `${feedName.value} Witnet Data Feed on ${networkName.value}`,
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'viewport-fit=cover, width=device-width, initial-scale=1',
},
{
hid: 'title',
name: 'title',
content: `${feedName.value} Witnet Data Feed on ${networkName.value}`,
},
{
hid: 'description',
name: 'description',
content: `Last result of ${feedName.value} Witnet Data Feed on ${networkName.value} is ${lastResultValue.value} at ${lastResultDate.value}`,
},
{
hid: 'twitter:title',
name: 'twitter:title',
content: `${feedName.value} Witnet Data Feed on ${networkName.value}`,
},
{
hid: 'twitter:description',
name: 'twitter:description',
content: `Last result of ${feedName.value} Witnet Data Feed on ${networkName.value} is ${lastResultValue.value} at ${lastResultDate.value}`,
},
{
hid: 'twitter:image',
name: 'twitter:image',
content: 'https://feeds.witnet.io/meta-image.png',
},
{
hid: 'twitter:image:alt',
name: 'twitter:image:alt',
content: 'Witnet data feeds explorer',
},
{
hid: 'og:title',
property: 'og:title',
content: `${feedName.value} Witnet Data Feed on ${networkName.value}`,
},
{
hid: 'og:description',
property: 'og:description',
content: `Last result of ${feedName.value} Witnet Data Feed on ${networkName.value} is ${lastResultValue.value} at ${lastResultDate.value}`,
},
{
hid: 'og:image',
property: 'og:image',
content: 'https://feeds.witnet.io/meta-image.png',
},
{
hid: 'og:image:secure_url',
property: 'og:image:secure_url',
content: 'https://feeds.witnet.io/meta-image.png',
},
{
hid: 'og:image:alt',
property: 'og:image:alt',
content: 'Witnet data feeds explorer',
},
],
})
// useSeoMeta({
// ogTitle: () =>
// `${normalizedFeed.value?.name ?? ''} Witnet Data Feed on ${normalizedFeed.value?.networkName ?? 'selected network'}`,
Expand Down

0 comments on commit 4d5cdc7

Please sign in to comment.