From 89d0e6ab9cd64ee4a09db4d8f0f5d7cb1f7b8aa3 Mon Sep 17 00:00:00 2001 From: LBlend Date: Thu, 14 Mar 2024 12:04:55 +0100 Subject: [PATCH] add google rich snippet --- src/components/seo.js | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/src/components/seo.js b/src/components/seo.js index e7c67d8..f0f5784 100644 --- a/src/components/seo.js +++ b/src/components/seo.js @@ -24,6 +24,38 @@ function Seo({ description, lang, meta, imageURL, title, author }) { const metaDescription = description || site.siteMetadata.description const defaultTitle = site.siteMetadata?.title + const jsonLdDescription = + "UiO Gaming sitt formål er å fremme gaming, brettspill og andre spillrelaterte interesser/kulturer ved UiO. I tillegg til dette vil vi lage et sosialt miljø som tilrettelegger alle former for aktivitet rundt spill. Foreningen har derfor som mål å arrangere spillkvelder, turneringer, LAN og andre spillrelaterte aktiviteter åpent for alle som er interesserte" // I shouldn't hardcode this but whatever + + const jsonLd = { + "@context": "https://schema.org", + "@type": "Organization", + logo: `${site.siteMetadata.url}/logo.jpg`, + url: site.siteMetadata.url, + sameAs: [ + "https://www.instagram.com/uio_gaming", + "https://www.facebook.com/profile.php?id=100066853901827", + "https://www.twitch.tv/uio_gaming", + "https://www.youtube.com/channel/UCZhUhWT_q0oZGk0rCeov51Q", + "https://github.com/UiO-Gaming", + ], + name: site.siteMetadata.title, + description: jsonLdDescription, + email: "styret@uiogaming.no", + address: { + "@type": "PostalAddress", + streetAddress: "Slemdalsveien 15", + addressLocality: "Oslo", + postalCode: "0369", + addressCountry: "NO", + }, + contactPoint: { + "@type": "ContactPoint", + email: "styret@uiogaming.no", + }, + foundingDate: "2020-09-11", + } + return ( + > + + ) }