mirror of
https://github.com/andatoshiki/toshiki-home-nuxt3.git
synced 2026-06-06 00:46:29 +00:00
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:
parent
5732eac358
commit
a7f2f1937e
@ -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
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user