chore: a bit more truncation

This commit is contained in:
Cory Dransfeldt 2024-06-13 16:35:29 -07:00
parent 433905c260
commit e58a220488
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -79,7 +79,7 @@ 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, 150).join(' ')}...<br/><br/>`
if (item?.['description']) content['description'] = `${item['description'].split(' ').slice(0, 100).join(' ')}...<br/><br/>`
const date = getDate ? parseDate(getDate(item)) : null
if (date) content['date'] = date
aggregateContent.push(content)