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

@ -79,25 +79,6 @@ module.exports = function (eleventyConfig) {
return Array.from(tagsSet).sort()
})
eleventyConfig.addCollection('links', (collection) => {
const links = []
collection.getAll().forEach((item) => {
if (item.data.collections.posts) {
item.data.collections.posts.forEach((post) => {
const url = post.data.link
if (url?.includes('http') && !links.find((link) => link.title === post.data.title))
links.push({
url: post.data.link,
title: post.data.title,
date: post.data.date,
description: post.data.post_excerpt ? md.render(post.data.post_excerpt) : '',
})
})
}
})
return links
})
eleventyConfig.addCollection('tagMap', (collection) => {
const tags = {}
collection.getAll().forEach((item) => {