@11ty/eleventy-plugin-rss
Advanced tools
Comparing version 2.0.0-beta.3 to 2.0.0-beta.4
{ | ||
"name": "@11ty/eleventy-plugin-rss", | ||
"version": "2.0.0-beta.3", | ||
"version": "2.0.0-beta.4", | ||
"description": "A pack of Eleventy plugins for generating an RSS feed using the Nunjucks templating engine.", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -5,3 +5,3 @@ const pkg = require("../package.json"); | ||
function getFeedContent(type, { collectionName, limit }) { | ||
function getFeedContent(type, { stylesheet, collectionName, limit }) { | ||
// Note: page.lang comes from the i18n plugin: https://www.11ty.dev/docs/plugins/i18n/#page.lang | ||
@@ -12,3 +12,3 @@ | ||
return `<?xml version="1.0" encoding="utf-8"?> | ||
${options.stylesheet ? `<?xml-stylesheet href="${options.stylesheet}" type="text/xsl"?>\n` : ""}<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="{{ metadata.base | addPathPrefixToFullUrl }}" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
${stylesheet ? `<?xml-stylesheet href="${stylesheet}" type="text/xsl"?>\n` : ""}<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="{{ metadata.base | addPathPrefixToFullUrl }}" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
@@ -38,3 +38,3 @@ <title>{{ metadata.title }}</title> | ||
return `<?xml version="1.0" encoding="utf-8"?> | ||
${options.stylesheet ? `<?xml-stylesheet href="${options.stylesheet}" type="text/xsl"?>\n` : ""}<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ metadata.language or page.lang }}"> | ||
${stylesheet ? `<?xml-stylesheet href="${stylesheet}" type="text/xsl"?>\n` : ""}<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ metadata.language or page.lang }}"> | ||
<title>{{ metadata.title }}</title> | ||
@@ -41,0 +41,0 @@ <subtitle>{{ metadata.subtitle }}</subtitle> |
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
15302