chore: restore link data

This commit is contained in:
Cory Dransfeldt 2023-10-30 10:40:20 -07:00
parent 20ee0e1fbd
commit 5a54d4c9ef

View file

@ -158,6 +158,14 @@ module.exports = function (eleventyConfig) {
if (tagString) tags[url] = tagString if (tagString) tags[url] = tagString
}) })
} }
if (item.data.links) {
item.data.links.forEach((link) => {
const tagString = [...new Set(link.tags.map((tag) => tagAliases[tag.toLowerCase()]))]
.join(' ')
.trim()
if (tagString) tags[link.url] = tagString
})
}
}) })
return tags return tags
}) })