akashacms-blog-podcast
Advanced tools
Comparing version 0.6.6 to 0.6.7
14
index.js
@@ -274,3 +274,3 @@ /** | ||
get elementName() { return "blog-news-index"; } | ||
process($element, metadata, dirty) { | ||
async process($element, metadata, dirty) { | ||
var blogtag = $element.attr("blogtag"); | ||
@@ -282,7 +282,7 @@ if (!blogtag) { | ||
error("NO BLOG TAG in blog-news-index"+ metadata.document.path); | ||
throw new Error("NO BLOG TAG in blog-news-index"+ metadata.document.path); | ||
throw new Error("NO BLOG TAG in blog-news-index "+ metadata.document.path); | ||
} | ||
var blogcfg = metadata.config.pluginData(pluginName).bloglist[blogtag]; | ||
if (!blogcfg) return done(new Error('No blog configuration found for blogtag '+ blogtag)); | ||
if (!blogcfg) throw new Error('No blog configuration found for blogtag '+ blogtag); | ||
@@ -292,6 +292,4 @@ var template = $element.attr("template"); | ||
return findBlogIndexes(metadata.config, metadata, blogcfg) | ||
.then(indexDocuments => { | ||
return akasha.partial(metadata.config, template, { indexDocuments }); | ||
}); | ||
let indexDocuments = await findBlogIndexes(metadata.config, metadata, blogcfg); | ||
return akasha.partial(metadata.config, template, { indexDocuments }); | ||
} | ||
@@ -340,3 +338,3 @@ } | ||
// console.log(`blog-next-prev findBlogDocs blogtag ${util.inspect(metadata.blogtag)} found ${document.basedir} ${document.docpath} ${document.docfullpath} ${document.renderpath} MATCHES? ${docpathNoSlash} ${metadata.document.path}`); | ||
if (path.normalize(document.docpath) === path.normalize(docpathNoSlash)) { | ||
if (path.normalize(document.docdestpath) === path.normalize(docpathNoSlash)) { | ||
docIndex = j; | ||
@@ -343,0 +341,0 @@ } |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"engines": { | ||
@@ -17,0 +17,0 @@ "node": ">=8.4" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27107
8
306