diff --git a/config/collections/index.js b/config/collections/index.js index 0454a127..aaf61a41 100644 --- a/config/collections/index.js +++ b/config/collections/index.js @@ -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']}<br/><br/>` + if (item?.['description']) content['description'] = `${item['description'].split(' ').slice(0, 150).join(' ')}...<br/><br/>` const date = getDate ? parseDate(getDate(item)) : null if (date) content['date'] = date aggregateContent.push(content)