@11ty/eleventy-plugin-rss 中文文档教程
eleventy-plugin-rss
一包 Eleventy 过滤器,用于使用 Nunjucks 模板引擎生成 Atom 和 JSON 提要。
注意:该插件称为 RSS,但在技术上不包含 RSS 提要的示例。 一般支持RSS的feed阅读器也支持Atom。 如果您想贡献一个示例,欢迎提出拉取请求!
请参阅 sample/feed.njk
示例 Atom 提要模板或 sample/feed.json< /code> 示例 JSON 提要模板。
The full eleventy-plugin-rss
documentation is on 11ty.dev.
- This is a plugin for the Eleventy static site generator.
- Find more Eleventy plugins.
- Please star Eleventy on GitHub, follow @eleven_ty on Twitter, and support 11ty on Open Collective
Installation
npm install @11ty/eleventy-plugin-rss
完整的 eleventy-plugin-rss
文档位于 11ty.dev。< /em>
Tests
npm run test
- We use the ava JavaScript test runner (Assertions documentation)
- ℹ️ To keep tests fast, thou shalt try to avoid writing files in tests.
eleventy-plugin-rss
A pack of Eleventy filters for generating Atom and JSON feeds using the Nunjucks templating engine.
Note: the plugin is called RSS but does not technically include an example of an RSS feed. Generally feed readers that support RSS also support Atom. If you’d like to contribute an example, a pull request would be welcome!
See sample/feed.njk
for an example Atom feed template or sample/feed.json
for an example JSON feed template.
The full eleventy-plugin-rss
documentation is on 11ty.dev.
- This is a plugin for the Eleventy static site generator.
- Find more Eleventy plugins.
- Please star Eleventy on GitHub, follow @eleven_ty on Twitter, and support 11ty on Open Collective
Installation
npm install @11ty/eleventy-plugin-rss
The full eleventy-plugin-rss
documentation is on 11ty.dev.
Tests
npm run test
- We use the ava JavaScript test runner (Assertions documentation)
- ℹ️ To keep tests fast, thou shalt try to avoid writing files in tests.