Closed d3v1an7 closed 2 weeks ago
Having a play with the new goodness, and the first thing I tried to build was a full sitemap.
eleventy.config.js
import markdownIt from "markdown-it"; import { feedPlugin } from "@11ty/eleventy-plugin-rss"; export default async function (eleventyConfig) { eleventyConfig.addFilter("head", (arr, num) => { return num ? arr.slice(0, num) : arr; }); eleventyConfig.addPlugin(feedPlugin, { type: "atom", outputPath: "/all.xml", collection: { name: "all", limit: 0, }, }); eleventyConfig.setLibrary("md", markdownIt()); }
page1.md
--- tags: tag1 --- Tag 1
page2.md
--- tags: tag2 --- Tag 2
When running npx @11ty/eleventy
npx @11ty/eleventy
[11ty] Problem writing Eleventy templates: (more in DEBUG output) [11ty] Dependency Cycle Found: ___TAG___all -> ./eleventy-plugin-feed-atom.njk -> ___TAG___all (via Error)
Am using:
"@11ty/eleventy": "3.0.0-alpha.13", "@11ty/eleventy-plugin-rss": "^2.0.0"
Works fine when using tag1 or tag2, but no dice for all!
tag1
tag2
all
Shipping with RSS Plugin v2.0.2
Having a play with the new goodness, and the first thing I tried to build was a full sitemap.
eleventy.config.js
page1.md
page2.md
When running
npx @11ty/eleventy
Am using:
Works fine when using
tag1
ortag2
, but no dice forall
!