Skip to content

Commit

Permalink
Fix SEO Meta issues on profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmybisenius committed Jan 19, 2021
1 parent 1cfa730 commit 62b6033
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions client/pages/u/_.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ export default Vue.extend({
},
{
hid: 'og:title',
name: 'title',
name: 'og:title',
content: profile.headline || ''
},
{
hid: 'twitter:title',
name: 'twitter:title',
content: profile.headline || ''
},
{
Expand All @@ -106,14 +111,34 @@ export default Vue.extend({
},
{
hid: 'og:description',
name: 'description',
name: 'og:description',
content: profile.subtitle || ''
},
{
hid: 'twitter:description',
name: 'twitter:description',
content: profile.subtitle || ''
},
{
hid: 'og:image',
name: 'og:image',
content: process.env.API_URL + '/profile/thumbnail/' + this.$route.path.replace('/u/', '')
}
},
{
hid: 'twitter:image',
name: 'twitter:image',
content: process.env.API_URL + '/profile/thumbnail/' + this.$route.path.replace('/u/', '')
},
{
hid: 'twitter:url',
name: 'twitter:url',
content: 'https://singlel.ink/u/' + profile.handle
},
{
hid: 'twitter:card',
name: 'twitter:card',
content: 'summary_large_image'
}
]
};
},
Expand Down

0 comments on commit 62b6033

Please sign in to comment.