From 6084bb15cfb275662ca22f8c7d5ab7949501978b Mon Sep 17 00:00:00 2001 From: Aeledfyr <45501007+Aeledfyr@users.noreply.github.com> Date: Mon, 26 Oct 2020 21:21:43 -0500 Subject: [PATCH] Fix meta tags for embeds (#11) --- nuxt.config.js | 1 - pages/mod/_id/index.vue | 33 ++++++++++++++++-------------- pages/mod/_id/version/_version.vue | 8 ++++---- pages/mod/_id/versions.vue | 7 +++---- 4 files changed, 25 insertions(+), 24 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 841bed4ff..e2ad541a2 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -23,7 +23,6 @@ export default { 'Modrinth is a mod distribution platform. Modrinth is modern, easy to use, and built for modders. Modrinth currently supports Minecraft, including the forge and fabric mod loaders.', }, - { hid: 'author', name: 'author', content: 'Modrinth' }, { hid: 'publisher', name: 'publisher', content: 'Guavy LLC' }, { hid: 'apple-mobile-web-app-title', diff --git a/pages/mod/_id/index.vue b/pages/mod/_id/index.vue index 8c0d443c4..884a3e1c8 100644 --- a/pages/mod/_id/index.vue +++ b/pages/mod/_id/index.vue @@ -56,34 +56,37 @@ export default { title: this.mod.title + ' - Modrinth', meta: [ { - hid: 'description', - name: 'description', - content: - this.mod.description + - ' View other minecraft mods on Modrinth today! Modrinth is a new and modern Minecraft modding platform that is compatible with CurseForge too!', + hid: 'og:type', + name: 'og:type', + content: 'website', + }, + { + hid: 'og:title', + name: 'og:title', + content: this.mod.title, }, - { hid: 'apple-mobile-web-app-title', name: 'apple-mobile-web-app-title', content: this.mod.title, }, { - hid: 'og:site_name', - name: 'og:site_name', - content: this.mod.title, + hid: 'og:description', + name: 'og:description', + content: this.mod.description, + }, + { + hid: 'description', + name: 'description', + content: + this.mod.description + + ' View other 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/mod/${this.mod.id}`, }, - { - hid: 'og:description', - name: 'og:description', - content: this.mod.description, - }, - { hid: 'og:type', name: 'og:type', content: 'article' }, { hid: 'og:image', name: 'og:image', diff --git a/pages/mod/_id/version/_version.vue b/pages/mod/_id/version/_version.vue index 03cc6be02..2d3a9947e 100644 --- a/pages/mod/_id/version/_version.vue +++ b/pages/mod/_id/version/_version.vue @@ -222,12 +222,12 @@ export default { { hid: 'apple-mobile-web-app-title', name: 'apple-mobile-web-app-title', - content: this.mod.title + ' - Modrinth', + content: this.mod.title, }, { - hid: 'og:site_name', - name: 'og:site_name', - content: this.mod.title + ' - Modrinth', + hid: 'og:title', + name: 'og:title', + content: this.mod.title, }, { hid: 'og:url', diff --git a/pages/mod/_id/versions.vue b/pages/mod/_id/versions.vue index 1f3799862..77948a9de 100644 --- a/pages/mod/_id/versions.vue +++ b/pages/mod/_id/versions.vue @@ -328,15 +328,14 @@ export default { this.mod.description + ' View other minecraft mods on Modrinth today! Modrinth is a new and modern Minecraft modding platform that is compatible with CurseForge too!', }, - { hid: 'apple-mobile-web-app-title', name: 'apple-mobile-web-app-title', content: this.mod.title, }, { - hid: 'og:site_name', - name: 'og:site_name', + hid: 'og:title', + name: 'og:title', content: this.mod.title, }, { @@ -349,7 +348,7 @@ export default { name: 'og:description', content: this.mod.description, }, - { hid: 'og:type', name: 'og:type', content: 'article' }, + { hid: 'og:type', name: 'og:type', content: 'website' }, { hid: 'og:image', name: 'og:image',