You've already forked AstralRinth
forked from didirus/AstralRinth
SEO cleanup (#1367)
* SEO/Metadata cleanup May split rules changes into its own PR * Revert rules/terms changes as they are now on a separate branch * Update [searchProjectType].vue * Update terms.vue
This commit is contained in:
committed by
GitHub
parent
bd4da4f365
commit
fc64719bb8
+22
-30
@@ -125,31 +125,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<Head>
|
||||
<Title> {{ project.title }} - Minecraft {{ projectTypeDisplay }} </Title>
|
||||
<Meta name="og:title" :content="`${project.title} - Minecraft ${projectTypeDisplay}`" />
|
||||
<Meta
|
||||
name="description"
|
||||
:content="`${project.description} - Download the Minecraft ${projectTypeDisplay} ${
|
||||
project.title
|
||||
} by ${members.find((x) => x.role === 'Owner').user.username} on Modrinth`"
|
||||
/>
|
||||
<Meta
|
||||
name="apple-mobile-web-app-title"
|
||||
:content="`${project.title} - Minecraft ${projectTypeDisplay}`"
|
||||
/>
|
||||
<Meta name="og:description" :content="project.description" />
|
||||
<Meta
|
||||
name="og:image"
|
||||
:content="project.icon_url ? project.icon_url : 'https://cdn.modrinth.com/placeholder.png'"
|
||||
/>
|
||||
<Meta
|
||||
name="robots"
|
||||
:content="
|
||||
project.status === 'approved' || project.status === 'archived' ? 'all' : 'noindex'
|
||||
"
|
||||
/>
|
||||
</Head>
|
||||
<Modal ref="modalLicense" :header="project.license.name ? project.license.name : 'License'">
|
||||
<div class="modal-license">
|
||||
<div class="markdown-body" v-html="renderString(licenseText)" />
|
||||
@@ -878,11 +853,6 @@ featuredVersions.value.sort((a, b) => {
|
||||
return gameVersions.indexOf(aLatest) - gameVersions.indexOf(bLatest)
|
||||
})
|
||||
|
||||
const projectTypeDisplay = computed(() =>
|
||||
data.$formatProjectType(
|
||||
data.$getProjectTypeForDisplay(project.value.project_type, project.value.loaders)
|
||||
)
|
||||
)
|
||||
const licenseIdDisplay = computed(() => {
|
||||
const id = project.value.license.id
|
||||
|
||||
@@ -896,6 +866,28 @@ const licenseIdDisplay = computed(() => {
|
||||
})
|
||||
const featuredGalleryImage = computed(() => project.value.gallery.find((img) => img.featured))
|
||||
|
||||
const projectTypeDisplay = data.$formatProjectType(
|
||||
data.$getProjectTypeForDisplay(project.value.project_type, project.value.loaders)
|
||||
)
|
||||
const title = `${project.value.title} - Minecraft ${projectTypeDisplay}`
|
||||
const description = `${project.value.description} - Download the Minecraft ${projectTypeDisplay} ${
|
||||
project.value.title
|
||||
} by ${members.value.find((x) => x.role === 'Owner').user.username} on Modrinth`
|
||||
|
||||
if (!route.name.startsWith('type-id-settings')) {
|
||||
useSeoMeta({
|
||||
title,
|
||||
description,
|
||||
ogTitle: title,
|
||||
ogDescription: project.value.description,
|
||||
ogImage: project.value.icon_url ?? 'https://cdn.modrinth.com/placeholder.png',
|
||||
robots:
|
||||
project.value.status === 'approved' || project.value.status === 'archived'
|
||||
? 'all'
|
||||
: 'noindex',
|
||||
})
|
||||
}
|
||||
|
||||
async function resetProject() {
|
||||
const newProject = await useBaseFetch(`project/${project.value.id}`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user