chore: bigger pool for watching heros; truncate shares more

This commit is contained in:
Cory Dransfeldt 2024-06-20 14:19:40 -07:00
parent c44ab7a8fd
commit 98e04e2bb3
No known key found for this signature in database
6 changed files with 29 additions and 15 deletions

View file

@ -80,7 +80,12 @@ export const allContent = (collection) => {
}
if (item?.['link']) content['url'] = item?.['link']
if (item?.['slug']) content['url'] = new URL(item['slug'], BASE_URL).toString()
if (item?.['description']) content['description'] = `${item['description'].split(' ').slice(0, 100).join(' ')}...<br/><br/>`
if (item?.['description']) {
content['description'] = `${item['description'].split(' ').slice(0, 25).join(' ')}...<br/><br/>`
} else {
content['description'] = ''
}
const date = getDate ? parseDate(getDate(item)) : null
if (date) content['date'] = date
aggregateContent.push(content)