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:
Emma Alexia Triphora
2023-09-22 12:45:03 -04:00
committed by GitHub
parent bd4da4f365
commit fc64719bb8
29 changed files with 261 additions and 473 deletions

View File

@@ -391,7 +391,6 @@ const config = useRuntimeConfig()
const route = useRoute()
const link = config.public.siteUrl + route.path.replace(/\/+$/, '')
useHead({
meta: [{ name: 'og:url', content: link }],
link: [
{
rel: 'canonical',
@@ -400,6 +399,34 @@ useHead({
],
})
const description =
'Download Minecraft mods, plugins, datapacks, shaders, resourcepacks, and modpacks on Modrinth. ' +
'Discover and publish projects on Modrinth with a modern, easy to use interface and API.'
useSeoMeta({
title: 'Modrinth',
description,
publisher: 'Rinth, Inc.',
themeColor: [
{ color: '#1bd96a', media: '(prefers-color-scheme:no-preference)' },
{ color: '#1bd96a', media: '(prefers-color-scheme:dark)' },
{ color: '#00af5c', media: '(prefers-color-scheme:light)' },
],
colorScheme: 'dark light',
// OpenGraph
ogTitle: 'Modrinth',
ogSiteName: 'Modrinth',
ogDescription: description,
ogType: 'website',
ogImage: 'https://cdn.modrinth.com/modrinth-new.png',
ogUrl: link,
// Twitter
twitterCard: 'summary',
twitterSite: '@modrinth',
})
let developerModeCounter = 0
function developerModeIncrement() {