chore: a bit more truncation
This commit is contained in:
parent
433905c260
commit
e58a220488
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue