Add adrinth link (#761)
* Add adrinth link * Use article instead of aside to improve SEO * Fix bad change * Fix #737
This commit is contained in:
parent
848f0db3d1
commit
df1a939798
@ -25,11 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ea-callout">
|
<div class="ea-callout">
|
||||||
<a
|
<a rel="nofollow noopener" target="_blank" href="https://adrinth.com">
|
||||||
rel="nofollow noopener"
|
|
||||||
target="_blank"
|
|
||||||
href="https://modrinth.com"
|
|
||||||
>
|
|
||||||
Ads via Adrinth
|
Ads via Adrinth
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
'alt-layout': $cosmetics.projectLayout,
|
'alt-layout': $cosmetics.projectLayout,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<aside class="normal-page__sidebar">
|
<article class="normal-page__sidebar">
|
||||||
<div class="header card">
|
<div class="header card">
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
:to="
|
:to="
|
||||||
@ -506,7 +506,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</article>
|
||||||
<section class="normal-page__content">
|
<section class="normal-page__content">
|
||||||
<div
|
<div
|
||||||
v-if="project.status === 'unlisted'"
|
v-if="project.status === 'unlisted'"
|
||||||
@ -1051,11 +1051,6 @@ export default {
|
|||||||
this.projectTypeDisplay.charAt(0).toUpperCase() +
|
this.projectTypeDisplay.charAt(0).toUpperCase() +
|
||||||
this.projectTypeDisplay.slice(1)
|
this.projectTypeDisplay.slice(1)
|
||||||
}`
|
}`
|
||||||
const description = `${this.project.description} - Download the Minecraft ${
|
|
||||||
this.projectTypeDisplay
|
|
||||||
} ${this.project.title} by ${
|
|
||||||
this.members.find((x) => x.role === 'Owner').user.username
|
|
||||||
} on Modrinth`
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title,
|
title,
|
||||||
@ -1073,12 +1068,16 @@ export default {
|
|||||||
{
|
{
|
||||||
hid: 'og:description',
|
hid: 'og:description',
|
||||||
name: 'og:description',
|
name: 'og:description',
|
||||||
content: description,
|
content: this.project.description,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hid: 'description',
|
hid: 'description',
|
||||||
name: 'description',
|
name: 'description',
|
||||||
content: description,
|
content: `${this.project.description} - Download the Minecraft ${
|
||||||
|
this.projectTypeDisplay
|
||||||
|
} ${this.project.title} by ${
|
||||||
|
this.members.find((x) => x.role === 'Owner').user.username
|
||||||
|
} on Modrinth`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hid: 'og:image',
|
hid: 'og:image',
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="normal-page">
|
<div class="normal-page">
|
||||||
<div class="normal-page__sidebar">
|
<div class="normal-page__sidebar">
|
||||||
<aside class="card sidebar">
|
<article class="card sidebar">
|
||||||
<h1 class="mobile-username">{{ user.username }}</h1>
|
<h1 class="mobile-username">{{ user.username }}</h1>
|
||||||
<div class="card__overlay">
|
<div class="card__overlay">
|
||||||
<FileInput
|
<FileInput
|
||||||
@ -144,7 +144,7 @@
|
|||||||
View GitHub profile
|
View GitHub profile
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
</aside>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
<div class="normal-page__content">
|
<div class="normal-page__content">
|
||||||
<Advertisement
|
<Advertisement
|
||||||
@ -368,6 +368,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
head() {
|
head() {
|
||||||
|
const description = this.user.bio
|
||||||
|
? `${this.user.bio} - Download ${this.user.username}'s projects on Modrinth`
|
||||||
|
: `Download ${this.user.username}'s projects on Modrinth`
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: this.user.username + ' - Modrinth',
|
title: this.user.username + ' - Modrinth',
|
||||||
meta: [
|
meta: [
|
||||||
@ -384,12 +388,12 @@ export default {
|
|||||||
{
|
{
|
||||||
hid: 'apple-mobile-web-app-title',
|
hid: 'apple-mobile-web-app-title',
|
||||||
name: 'apple-mobile-web-app-title',
|
name: 'apple-mobile-web-app-title',
|
||||||
content: this.user.username,
|
content: description,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hid: 'og:description',
|
hid: 'og:description',
|
||||||
name: 'og:description',
|
name: 'og:description',
|
||||||
content: `${this.user.bio} - Download ${this.user.username}'s projects on Modrinth`,
|
content: description,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hid: 'description',
|
hid: 'description',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user