Fix #9, Fix #42, Fix #48, Fix #95, Fix #96, Fix #97, Fix #99, Fix #119. Fix 120

This commit is contained in:
Jai A
2021-03-26 22:07:15 -07:00
parent 98df1f5312
commit e6ece10716
13 changed files with 221 additions and 104 deletions

View File

@@ -160,6 +160,47 @@ export default {
head() {
return {
title: this.user.username + ' - Modrinth',
meta: [
{
hid: 'og:type',
name: 'og:type',
content: 'website',
},
{
hid: 'og:title',
name: 'og:title',
content: this.user.username,
},
{
hid: 'apple-mobile-web-app-title',
name: 'apple-mobile-web-app-title',
content: this.user.username,
},
{
hid: 'og:description',
name: 'og:description',
content: this.user.bio,
},
{
hid: 'description',
name: 'description',
content:
this.user.bio +
' - View minecraft mods on Modrinth today! Modrinth is a new and modern Minecraft modding platform that is compatible with CurseForge too!',
},
{
hid: 'og:url',
name: 'og:url',
content: `https://modrinth.com/user/${this.user.id}`,
},
{
hid: 'og:image',
name: 'og:image',
content: this.user.avatar_url
? this.user.avatar_url
: 'https://cdn.modrinth.com/placeholder.png',
},
],
}
},
}