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 parent
0cb6dab28a
commit
496982355e
11 files changed
+51
-52
No files matched your search
+1
-4
@@ -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