From 279454b288abfb28fb1c37f405d2cf776a4ddada Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Thu, 12 Jun 2025 22:53:33 -0500 Subject: [PATCH] Add site description to json feed --- src/feed/json.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/feed/json.ts b/src/feed/json.ts index 750442f9..bf2d9a19 100644 --- a/src/feed/json.ts +++ b/src/feed/json.ts @@ -9,7 +9,7 @@ import { } from '.'; import { formatDateFromPostgresString } from '@/utility/date'; import { Photo } from '@/photo'; -import { BASE_URL } from '@/app/config'; +import { BASE_URL, META_DESCRIPTION } from '@/app/config'; import { META_TITLE } from '@/app/config'; interface FeedPhotoJson { @@ -41,6 +41,7 @@ export const formatFeedJson = (photos: Photo[]) => ({ meta: { title: META_TITLE, url: BASE_URL, + ...META_DESCRIPTION && { description: META_DESCRIPTION }, }, photos: photos.map(formatPhotoForFeedJson), });