chore: feeds
This commit is contained in:
parent
1e106320c1
commit
d32e976329
8 changed files with 25 additions and 14090 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue