mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 18:26:38 -04:00
extract metadata merging logic from each page into a helper function
This commit is contained in:
@ -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: "/uses",
|
||||
description: "Things I use daily.",
|
||||
openGraph: {
|
||||
...defaultMetadata.openGraph,
|
||||
title: "/uses",
|
||||
url: "/uses",
|
||||
},
|
||||
alternates: {
|
||||
...defaultMetadata.alternates,
|
||||
canonical: "/uses",
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
<PageTitle canonical="/uses">Uses</PageTitle>
|
||||
|
||||
|
Reference in New Issue
Block a user