extract metadata merging logic from each page into a helper function

This commit is contained in:
jake committed 2025-03-14 20:16:27 -04:00
1 parent 6e572a8f48
commit 5ca7e6cb22
19 files changed
+211 -245

No files matched your search

+3 -9
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>