From e2a445ec2b9d3f6fc79e9bfc59bf7b8aa9a0c204 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Mon, 22 Apr 2024 15:00:05 -0700 Subject: [PATCH] SUP-108 Sitewide metadata --- app/[...slug]/metadata.tsx | 2 +- app/layout.tsx | 4 ++-- app/sitemap.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/[...slug]/metadata.tsx b/app/[...slug]/metadata.tsx index 43b7522e..4ed54a78 100644 --- a/app/[...slug]/metadata.tsx +++ b/app/[...slug]/metadata.tsx @@ -4,7 +4,7 @@ import {decode} from "html-entities"; export const getNodeMetadata = (node: NodeUnion): Metadata => { const defaultData = { - title: node.title, + title: node.title + " | Stanford University Press", other: {} } switch (node.__typename) { diff --git a/app/layout.tsx b/app/layout.tsx index db7bd184..c9cf31c8 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -27,8 +27,8 @@ export const metadata = { openGraph: { type: "website", locale: "en_IE", - url: "https://somesite.stanford.edu", - siteName: "[Stanford University]", + url: "https://sup.org", + siteName: "Stanford University Press", }, twitter: { card: "summary_large_image", diff --git a/app/sitemap.tsx b/app/sitemap.tsx index b616d4bf..45ca17b3 100644 --- a/app/sitemap.tsx +++ b/app/sitemap.tsx @@ -11,7 +11,7 @@ const Sitemap = async (): Promise => { const sitemap: MetadataRoute.Sitemap = []; nodes.map(node => sitemap.push({ - url: `${process.env.NEXT_PUBLIC_DOMAIN || ""}${node.path}`, + url: `https://sup.org${node.path}`, lastModified: new Date(node.changed.time), priority: node.__typename === "NodeStanfordPage" ? 1 : .8, changeFrequency: node.__typename === "NodeStanfordPage" ? "weekly": "monthly"