@11ty/eleventy-plugin-rss
Advanced tools
Comparing version 2.0.0-beta.6 to 2.0.0-beta.7
{ | ||
"name": "@11ty/eleventy-plugin-rss", | ||
"version": "2.0.0-beta.6", | ||
"version": "2.0.0-beta.7", | ||
"description": "A pack of Eleventy plugins for generating an RSS feed using the Nunjucks templating engine.", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -101,5 +101,7 @@ const pkg = require("../package.json"); | ||
// Guaranteed unique | ||
let pluginHtmlBase = await eleventyConfig.resolvePlugin("@11ty/eleventy/html-base-plugin"); | ||
const pluginHtmlBase = await eleventyConfig.resolvePlugin("@11ty/eleventy/html-base-plugin"); | ||
eleventyConfig.addPlugin(pluginHtmlBase, options.htmlBasePluginOptions || {}); | ||
let slugifyFilter = eleventyConfig.getFilter("slugify"); | ||
let inputPathSuffix = options?.metadata?.title ? `-${slugifyFilter(options?.metadata?.title)}` : ""; | ||
options = DeepCopy({ | ||
@@ -113,3 +115,3 @@ // rss and json also supported | ||
outputPath: "/feed.xml", | ||
inputPath: `virtual:eleventy-plugin-feed-${options.type || "atom"}.njk`, // TODO make this more unique | ||
inputPath: `eleventy-plugin-feed${inputPathSuffix}-${options.type || "atom"}.njk`, // TODO make this more unique | ||
templateData: {}, | ||
@@ -116,0 +118,0 @@ metadata: { |
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
15182
271