1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-23 11:46:08 -05:00

refactor constants

This commit is contained in:
2025-04-11 14:50:15 -04:00
parent 0ade75716e
commit 37fa6101f6
11 changed files with 54 additions and 37 deletions

View File

@@ -15,7 +15,7 @@ export const buildFeed = async (): Promise<Feed> => {
id: `${BASE_URL}`,
link: `${BASE_URL}`,
title: config.siteName,
description: config.longDescription,
description: config.description,
copyright: config.licenseUrl,
updated: new Date(RELEASE_TIMESTAMP),
image: `${BASE_URL}${ogImage.src}`,

View File

@@ -1,22 +1,22 @@
import * as config from "../config";
import { BASE_URL } from "../config/constants";
import { BASE_URL, SITE_LOCALE } from "../config/constants";
import type { Metadata } from "next";
export const defaultMetadata: Metadata = {
metadataBase: new URL(BASE_URL),
title: {
template: `%s ${config.siteName}`,
default: `${config.siteName} ${config.shortDescription}`,
default: `${config.siteName} ${config.tagline}`,
},
description: config.longDescription,
description: config.description,
openGraph: {
siteName: config.siteName,
title: {
template: "%s",
default: `${config.siteName} ${config.shortDescription}`,
default: `${config.siteName} ${config.tagline}`,
},
url: "/",
locale: config.siteLocale?.replace("-", "_"),
locale: SITE_LOCALE?.replace("-", "_"),
type: "website",
},
twitter: {