From 731d981522feccd661b4d353ceed39bff4dccc7f Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt <hi@coryd.dev> Date: Mon, 7 Oct 2024 17:11:41 -0700 Subject: [PATCH] fix: syntax --- config/collections/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/collections/index.js b/config/collections/index.js index 8bbab32e..ac79cfd9 100644 --- a/config/collections/index.js +++ b/config/collections/index.js @@ -125,7 +125,7 @@ export const processContent = (collection) => { if (item?.['slug']) content['url'] = new URL(item['slug'], BASE_URL).toString() // set unique concert urls - if (item?.['type'] === 'concert') if (item?.['type'] === 'concert') content['url'] = `${item['artistUrl'] ? item['artistUrl'] : BASE_URL + '/music/concerts'}?t=${DateTime.fromISO(item['date']).toMillis()}${item['artistUrl'] ? '#concerts' : ''}` + if (item?.['type'] === 'concert') content['url'] = `${item['artistUrl'] ? item['artistUrl'] : BASE_URL + '/music/concerts'}?t=${DateTime.fromISO(item['date']).toMillis()}${item['artistUrl'] ? '#concerts' : ''}` if (item?.['description']) { content['description'] = md.render(item['description'])