akashacms-blog-podcast
Advanced tools
Comparing version 0.4.1 to 0.4.2
15
index.js
@@ -72,3 +72,8 @@ /** | ||
blogcfg = config.blogPodcast[metadata.blogtag]; | ||
documents = findBlogDocs(config, metadata, blogcfg); | ||
if (!blogcfg) { | ||
return done(new Error('No blog configuration found for blogtag '+ metadata.blogtag)); | ||
} else { | ||
documents = findBlogDocs(config, metadata, blogcfg); | ||
} | ||
// documents = findBlogDocs(config, metadata, blogcfg); | ||
} | ||
@@ -128,6 +133,10 @@ async.eachSeries(elements, function(element, next) { | ||
akasha.readDocumentEntry(metadata.documentPath, function(err, docEntry) { | ||
var blogcfg = config.blogPodcast[metadata.blogtag]; | ||
$('blog-next-prev').each(function(i, elem) { elements.push(elem); }); | ||
if (elements.length > 0) { | ||
blogcfg = config.blogPodcast[metadata.blogtag]; | ||
documents = findBlogDocs(config, metadata, blogcfg); | ||
if (!blogcfg) { | ||
return done(new Error('No blog configuration found for blogtag '+ metadata.blogtag)); | ||
} else { | ||
documents = findBlogDocs(config, metadata, blogcfg); | ||
} | ||
} | ||
@@ -134,0 +143,0 @@ async.eachSeries(elements, function(element, next) { |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"engines": { | ||
@@ -17,0 +17,0 @@ "node": ">=0.10.1" |
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
7638
163