mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 09:25:22 -04:00
48 lines
1.0 KiB
TypeScript
48 lines
1.0 KiB
TypeScript
import * as config from ".";
|
||
import { BASE_URL } from "./constants";
|
||
import type { Metadata } from "next";
|
||
|
||
const metadata: Metadata = {
|
||
metadataBase: new URL(BASE_URL),
|
||
title: {
|
||
template: `%s – ${config.siteName}`,
|
||
default: `${config.siteName} – ${config.shortDescription}`,
|
||
},
|
||
description: config.longDescription,
|
||
openGraph: {
|
||
siteName: config.siteName,
|
||
title: {
|
||
template: "%s",
|
||
default: `${config.siteName} – ${config.shortDescription}`,
|
||
},
|
||
url: "/",
|
||
locale: config.siteLocale?.replace("-", "_"),
|
||
type: "website",
|
||
},
|
||
twitter: {
|
||
creator: `@${config.authorSocial?.twitter}`,
|
||
},
|
||
alternates: {
|
||
canonical: "/",
|
||
types: {
|
||
"application/rss+xml": [
|
||
{
|
||
title: `${config.siteName} (RSS)`,
|
||
url: "/feed.xml",
|
||
},
|
||
],
|
||
"application/atom+xml": [
|
||
{
|
||
title: `${config.siteName} (Atom)`,
|
||
url: "/feed.atom",
|
||
},
|
||
],
|
||
},
|
||
},
|
||
other: {
|
||
humans: "/humans.txt",
|
||
},
|
||
};
|
||
|
||
export default metadata;
|