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:
@@ -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}`,
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user