akashacms-blog-podcast
Advanced tools
Comparing version 0.7.6 to 0.7.7
11
index.js
@@ -89,3 +89,9 @@ /** | ||
let u = new URL(config.root_url); | ||
u.pathname = doc.renderpath; | ||
// Accommodate when root_url is something like | ||
// http://example.com/foo/bar/ | ||
// This generates a URL for the blog entry that includes the | ||
// domain for the website. But in some cases the generated | ||
// content lands in a subdirectory. | ||
u.pathname = path.normalize(path.join(u.pathname, doc.renderpath)); | ||
// console.log(`rss item ${config.root_url} ${doc.renderpath} ==> ${u.toString()}`); | ||
return { | ||
@@ -126,3 +132,4 @@ title: doc.metadata.title, | ||
let feed_url = new URL(config.root_url); | ||
feed_url.pathname = blogcfg.rssurl; | ||
feed_url.pathname = path.normalize(path.join(feed_url.pathname, blogcfg.rssurl)); | ||
// console.log(`generateRSS ${config.root_url} ${blogcfg.rssurl} ==> ${feed_url.toString()}`); | ||
await akasha.generateRSS(config, blogcfg, { | ||
@@ -129,0 +136,0 @@ feed_url: feed_url.toString(), |
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"engines": { | ||
@@ -20,0 +20,0 @@ "node": ">=12.2" |
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
37242
447