Hi! I'm trying to get the RSS plugin to use the manual templates so I can add some of my front-matter data into the posts output in the feed, but after switching from virtual templates defined by options as in the official docs, which I commented out to this end, I got errors like these:
[11ty] Eleventy Fatal Error (CLI):
[11ty] 1. Error processing the `@11ty/eleventy-plugin-rss/feed-plugin` plugin (via EleventyPluginError)
[11ty] 2. Missing `collection.name` option in feedPlugin from @11ty/eleventy-plugin-rss.
[11ty]
[11ty] Original error stack trace: Error: Missing `collection.name` option in feedPlugin from @11ty/eleventy-plugin-rss.
[11ty] at eleventyFeedPlugin (/home/vivynx/Documents/website/11ty/node_modules/@11ty/eleventy-plugin-rss/src/virtualTemplate.js:135:11)
[11ty] at UserConfig._executePlugin (file:///home/vivynx/Documents/website/11ty/node_modules/@11ty/eleventy/src/UserConfig.js:752:10)
[11ty] at TemplateConfig.processPlugins (file:///home/vivynx/Documents/website/11ty/node_modules/@11ty/eleventy/src/TemplateConfig.js:350:27)
[11ty] at async TemplateConfig.mergeConfig (file:///home/vivynx/Documents/website/11ty/node_modules/@11ty/eleventy/src/TemplateConfig.js:515:3)
[11ty] at async TemplateConfig.init (file:///home/vivynx/Documents/website/11ty/node_modules/@11ty/eleventy/src/TemplateConfig.js:232:17)
[11ty] at async Eleventy.initializeConfig (file:///home/vivynx/Documents/website/11ty/node_modules/@11ty/eleventy/src/Eleventy.js:264:3)
[11ty] at async Eleventy.init (file:///home/vivynx/Documents/website/11ty/node_modules/@11ty/eleventy/src/Eleventy.js:504:4)
[11ty] at async exec (/home/vivynx/Documents/website/11ty/node_modules/@11ty/eleventy/cmd.cjs:97:3)
After un-commenting out the virtual template options for the RSS plugin, I saw that it did process the manual templates how I wanted them to, but the virtual template was still being generated as well, (which initially gave me permalink conflict errors, but those were easy to fix) so I just have an extra feed lying around in the build of my site. My temporary solution is just to make the virtual template generate a feed that renders as small a file as I can manage, but I assume it's not supposed to invoke virtual templates if the data for one isn't actually being provided..
I'm running 11ty version 3.1.2, and version 2.0.4 of the RSS plugin.
Hi! I'm trying to get the RSS plugin to use the manual templates so I can add some of my front-matter data into the posts output in the feed, but after switching from virtual templates defined by options as in the official docs, which I commented out to this end, I got errors like these:
After un-commenting out the virtual template options for the RSS plugin, I saw that it did process the manual templates how I wanted them to, but the virtual template was still being generated as well, (which initially gave me permalink conflict errors, but those were easy to fix) so I just have an extra feed lying around in the build of my site. My temporary solution is just to make the virtual template generate a feed that renders as small a file as I can manage, but I assume it's not supposed to invoke virtual templates if the data for one isn't actually being provided..
I'm running 11ty version 3.1.2, and version 2.0.4 of the RSS plugin.