11ty / eleventy-plugin-rss

A pack of Eleventy plugins for generating an RSS feed.
https://www.11ty.dev/docs/plugins/rss/
MIT License
92 stars 22 forks source link

Feed file not being generated #56

Open cjtheham opened 6 days ago

cjtheham commented 6 days ago

Using example code from documentation, no feed.xml file is being generated. No error output either.

https://github.com/cjtheham/ww0cj.radio/blob/main/.eleventy.js#L46

EDIT: Also just attempted this on a brand new 11ty site on the same versions, same issue occurs on fresh site with little to no configuration.

Command line output showing no errors:

(base) ➜  ww0cj-radio git:(main) ✗ npm run serve     

> ww0cj-radio@1.0.0 serve
> npx @11ty/eleventy --serve

(node:77788) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[11ty] Writing ./_site/contact/index.html from ./content/contact.njk
[11ty] Writing ./_site/index.html from ./content/index.njk
[11ty] Writing ./_site/links/index.html from ./content/links.njk
[11ty] Writing ./_site/tags/index.html from ./content/tags-listing.njk
[11ty] Writing ./_site/tags/amateur-radio/index.html from ./content/tags.njk
[11ty] Writing ./_site/policies/privacy/index.html from ./content/policies/privacy.njk
[11ty] Writing ./_site/blog/index.html from ./content/blog/index.njk
[11ty] Writing ./_site/amateur-radio/index.html from ./content/amateur-radio/index.njk
[11ty] Writing ./_site/amateur-radio/oklahoma/index.html from ./content/amateur-radio/oklahoma/index.njk
[11ty] Writing ./_site/blog/2023/soldering/index.html from ./content/blog/2023/soldering.md (liquid)
[11ty] Writing ./_site/blog/2024/2024-resolutions/index.html from ./content/blog/2024/2024-resolutions.md (liquid)
[11ty] Writing ./_site/blog/2024/april-wrapup/index.html from ./content/blog/2024/april-wrapup.md (liquid)
[11ty] Writing ./_site/blog/2024/building-legos/index.html from ./content/blog/2024/building-legos.md (liquid)
[11ty] Writing ./_site/blog/2024/corporate-adhd/index.html from ./content/blog/2024/corporate-adhd.md (liquid)
[11ty] Writing ./_site/blog/2024/dayton-hamvention/index.html from ./content/blog/2024/dayton-hamvention.md (liquid)
[11ty] Writing ./_site/blog/2024/february-wrapup/index.html from ./content/blog/2024/february-wrapup.md (liquid)
[11ty] Writing ./_site/blog/2024/foundation/index.html from ./content/blog/2024/foundation.md (liquid)
[11ty] Writing ./_site/blog/2024/january-wrapup/index.html from ./content/blog/2024/january-wrapup.md (liquid)
[11ty] Writing ./_site/blog/2024/learning-latex-bylaws/index.html from ./content/blog/2024/learning-latex-bylaws.md (liquid)
[11ty] Writing ./_site/blog/2024/march-wrapup/index.html from ./content/blog/2024/march-wrapup.md (liquid)
[11ty] Writing ./_site/blog/2024/ragchew-app/index.html from ./content/blog/2024/ragchew-app.md (liquid)
[11ty] Writing ./_site/blog/2024/wpx-rtty/index.html from ./content/blog/2024/wpx-rtty.md (liquid)
[11ty] Writing ./_site/tags/100-days-to-offload/index.html from ./content/tags.njk
[11ty] Writing ./_site/tags/mental-health/index.html from ./content/tags.njk
[11ty] Writing ./_site/tags/periodical/index.html from ./content/tags.njk
[11ty] Writing ./_site/tags/lego/index.html from ./content/tags.njk
[11ty] Writing ./_site/tags/hamfests/index.html from ./content/tags.njk
[11ty] Writing ./_site/tags/books/index.html from ./content/tags.njk
[11ty] Writing ./_site/tags/latex/index.html from ./content/tags.njk
[11ty] Copied 6 files / Wrote 29 files in 0.21 seconds (7.2ms each, v3.0.0-alpha.14)
[11ty] Watching…
[11ty] Server at http://localhost:8080/
zachleat commented 1 day ago

A few configuration issues here, firstly that the RSS plugin is still at 1.x in your repo! It needs to be 2.x

Secondly, the feed plugin import needs to look like this:

const { feedPlugin } = require("@11ty/eleventy-plugin-rss");

It isn’t failing with an error because the following is the valid way to add the RSS plugin filters to your project:

const rssPlugin = require("@11ty/eleventy-plugin-rss");

Make those changes and check back please!