Make tags and categories arrays

This commit is contained in:
Stan Lemon
2020-06-28 11:21:04 -04:00
parent b7aef9302b
commit 0487bd7e0c
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -94,10 +94,12 @@ function getTags(post) {
}
function processCategoryTags(post, domain) {
if (!post.category) {
return [];
}
return post.category
.filter(c => c["$"].domain === domain)
.map(({ $: c }) => c.nicename)
.join(", ");
.map(({ $: c }) => c.nicename);
}
function collectAttachedImages(data) {