update meta tag

Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
nurRiyad
2023-01-13 00:54:04 +06:00
parent 9e2b24ba13
commit e772004ba0
2 changed files with 7 additions and 6 deletions

11
app.vue
View File

@@ -2,10 +2,11 @@
const description = const description =
'Riyad, Software Engineer at AppsCode working on ByteBuilders, with over 1.5 years experience in Frontend development.' 'Riyad, Software Engineer at AppsCode working on ByteBuilders, with over 1.5 years experience in Frontend development.'
const ogTitle = const ogTitle =
'Riyad codes and helps others learning Javascript, Typescript, Vue, Nuxt, & Problem Solving' 'Riyad codes and helps others learn Javascript, Typescript, Vue, Nuxt, & Problem Solving'
const twitterDescription = const twitterDescription =
'My website of where I play around with Nuxt, Vue and more and showcase my blog, resources etc' 'My blog website, where I play around with Nuxt, Vue, and more and showcase my blog, resources, etc'
const twitterCard = 'https://res.cloudinary.com/dmecmyphj/image/upload/v1673369821/cld-sample-2.jpg' const image =
'https://res.cloudinary.com/dmecmyphj/image/upload/v1673548905/nuxt-blog/cover_ntgs6u.webp'
const mySite = 'https://blog-nurriyad.vercel.app/' const mySite = 'https://blog-nurriyad.vercel.app/'
useHead({ useHead({
htmlAttrs: { htmlAttrs: {
@@ -33,7 +34,7 @@ useHead({
}, },
{ {
property: 'og:image', property: 'og:image',
content: twitterCard, content: image,
}, },
// Test on: https://cards-dev.twitter.com/validator or https://socialsharepreview.com/ // Test on: https://cards-dev.twitter.com/validator or https://socialsharepreview.com/
{ name: 'twitter:site', content: '@debs_obrien' }, { name: 'twitter:site', content: '@debs_obrien' },
@@ -52,7 +53,7 @@ useHead({
}, },
{ {
name: 'twitter:image', name: 'twitter:image',
content: twitterCard, content: image,
}, },
], ],
}) })

View File

@@ -45,7 +45,7 @@ useHead({
content: data.value.ogImage || data.value.image, content: data.value.ogImage || data.value.image,
}, },
// Test on: https://cards-dev.twitter.com/validator or https://socialsharepreview.com/ // Test on: https://cards-dev.twitter.com/validator or https://socialsharepreview.com/
{ name: 'twitter:site', content: '@@qdnvubp' }, { name: 'twitter:site', content: '@qdnvubp' },
{ name: 'twitter:card', content: 'summary_large_image' }, { name: 'twitter:card', content: 'summary_large_image' },
{ {
name: 'twitter:url', name: 'twitter:url',