chore: update uses

This commit is contained in:
Cory Dransfeldt 2023-09-27 11:41:33 -07:00
parent e977d7ff4f
commit 8079fa1880
No known key found for this signature in database
4 changed files with 34 additions and 21 deletions

View file

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