1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:46:39 -04:00

extract metadata merging logic from each page into a helper function

This commit is contained in:
2025-03-14 20:16:27 -04:00
parent 6e572a8f48
commit 5ca7e6cb22
19 changed files with 211 additions and 245 deletions

View File

@ -1,19 +1,13 @@
import PageTitle from "../../components/PageTitle";
import { metadata as defaultMetadata } from "../layout";
import { addMetadata } from "../../lib/helpers/metadata";
export const metadata = {
export const metadata = addMetadata({
title: "CLI",
description: "AKA, the most useless Node module ever published, in history, by anyone, ever.",
openGraph: {
...defaultMetadata.openGraph,
title: "CLI",
url: "/cli",
},
alternates: {
...defaultMetadata.alternates,
canonical: "/cli",
},
};
});
<PageTitle canonical="/cli">CLI</PageTitle>