From 547b07f10e308276ca875aefbf40ec2a6ffc4372 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 15 Sep 2024 22:08:28 -0600 Subject: properly handle unlisted posts in RSS --- eleventy.config.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'eleventy.config.js') diff --git a/eleventy.config.js b/eleventy.config.js index 0b839ca..f187c91 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -1,5 +1,5 @@ import { InputPathToUrlTransformPlugin } from "@11ty/eleventy"; -import { feedPlugin } from "@11ty/eleventy-plugin-rss"; +import pluginRss from "@11ty/eleventy-plugin-rss"; import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"; import anchor from "markdown-it-anchor"; @@ -62,23 +62,7 @@ export default function (eleventyConfig) { Prism.languages.text = {}; }, }); - eleventyConfig.addPlugin(feedPlugin, { - type: "atom", - outputPath: "/feed.xml", - collection: { - name: "post", - limit: 0, - }, - metadata: { - language: "en", - title: "boringcactus", - subtitle: "boringcactus’s blog posts", - base: "https://www.boringcactus.com/", - author: { - name: "boringcactus / Melody Horn", - }, - }, - }); + eleventyConfig.addPlugin(pluginRss); eleventyConfig.amendLibrary("md", (mdLib) => mdLib.use(anchor)); -- cgit v1.2.3