chore: drop separate links feed

This commit is contained in:
Cory Dransfeldt 2023-09-27 08:34:06 -07:00
parent 3df15e7cd7
commit b5d3e22f11
No known key found for this signature in database
4 changed files with 2 additions and 37 deletions

View file

@ -17,7 +17,7 @@ module.exports = {
if (entry.data?.post_excerpt) excerpt = md.render(entry.data.post_excerpt)
// if there's a valid entry return a normalized object
if (entry && !entry.data?.link) {
if (entry)
posts.push({
title: entry.data?.title || entry.title,
url: entry.url.includes('http') ? entry.url : new URL(entry.url, BASE_URL).toString(),
@ -25,7 +25,6 @@ module.exports = {
date,
excerpt,
})
}
})
return posts
},