Using deep data merge (post tag is inherited from posts/posts.json) and updates to use 0.7.0.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user