Skip to content

Commit

Permalink
SUP-108 Sitewide metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Apr 22, 2024
1 parent 4acbbf3 commit e2a445e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/[...slug]/metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion app/sitemap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Sitemap = async (): Promise<MetadataRoute.Sitemap> => {
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"
Expand Down

0 comments on commit e2a445e

Please sign in to comment.