chore: feeds

This commit is contained in:
Cory Dransfeldt 2024-06-07 17:09:23 -07:00
parent 1e106320c1
commit d32e976329
No known key found for this signature in database
8 changed files with 25 additions and 14090 deletions

View file

@ -76,7 +76,7 @@ export const allContent = (collection) => {
items.forEach(item => {
const content = {
url: `${BASE_URL}${item['url']}`,
title: `${icon}: ${getTitle(item)}${item?.['authors']?.['name'] ? ' via ' + item['authors']['name'] : ''}${item?.['tags'] ? ' ' + tagsToHashtags(item['tags']) : ''}`
title: `${icon}: ${getTitle(item)}${item?.['authors']?.['name'] ? ' via ' + item['authors']['name'] : ''}${item?.['tags']?.length > 0 ? ' ' + tagsToHashtags(item['tags']) : ''}`
}
if (item?.['link']) content['url'] = item?.['link']
if (item?.['slug']) content['url'] = new URL(item['slug'], BASE_URL).toString()