chore: concert links for artists without pages

This commit is contained in:
Cory Dransfeldt 2024-10-07 17:10:54 -07:00 committed by GitHub
parent 4ee9ccccf8
commit 1d165e6a7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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') content['url'] = `${item['artistUrl']}?t=${DateTime.fromISO(item['date']).toMillis()}#concerts`
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?.['description']) {
content['description'] = md.render(item['description'])