test(open graph): manually add head tag metadata properties of all open graph data for testing featuared/preview images on social media link preview specifically for blog post internal pages by modifying properties of blog post slugs & add twitter image properties for blog post specifically for slug routes

This commit is contained in:
Anda Toshiki 2024-09-11 22:13:56 +00:00
parent 5732eac358
commit a7f2f1937e

View File

@ -69,12 +69,8 @@ export default Vue.extend({
{ {
title, title,
description, description,
image,
keywords: `${tags}, toshiki, andatoshiki, blog, Anda Toshiki, homepage, portfolio, website, personal, personal website, real life, programming, coding`, keywords: `${tags}, toshiki, andatoshiki, blog, Anda Toshiki, homepage, portfolio, website, personal, personal website, real life, programming, coding`,
url: href, url: href,
'og:image': image,
'og:title': title,
'og:description': description
}, },
[ [
{ {
@ -100,7 +96,31 @@ export default Vue.extend({
{ {
name: 'twitter:data2', name: 'twitter:data2',
content: `${this.getReadingTime} minutes` content: `${this.getReadingTime} minutes`
} },
{
name: 'twitter:image',
content: image
},
// open graph
{
name: 'og:type',
content: 'website'
},
{
hid: 'og:site_name',
name: 'og:site_name',
content: 'toshiki.dev'
},
{
name: 'og:description',
content: description
},
{
name: 'og:image',
content: image
},
] ]
) )
} }