Using deep data merge (post tag is inherited from posts/posts.json) and updates to use 0.7.0.

This commit is contained in:
Zach Leatherman
2019-01-10 22:20:14 -06:00
parent 0cb6dab28a
commit 496982355e
11 changed files with 51 additions and 52 deletions

View File

@ -1,11 +1,8 @@
module.exports = function(collection) {
let tagSet = new Set();
collection.getAllSorted().forEach(function(item) {
collection.getAll().forEach(function(item) {
if( "tags" in item.data ) {
let tags = item.data.tags;
if( typeof tags === "string" ) {
tags = [tags];
}
tags = tags.filter(function(item) {
switch(item) {