diff options
author | Melody Horn <melody@boringcactus.com> | 2024-09-15 22:08:28 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2024-09-15 22:08:28 -0600 |
commit | 547b07f10e308276ca875aefbf40ec2a6ffc4372 (patch) | |
tree | d910009a253589a4b80523bb032a1bc0da8ab215 /eleventy.config.js | |
parent | ab4459ea2446ced5b93e84aa779f29d80708f374 (diff) | |
download | boringcactus.com-547b07f10e308276ca875aefbf40ec2a6ffc4372.tar.gz boringcactus.com-547b07f10e308276ca875aefbf40ec2a6ffc4372.zip |
properly handle unlisted posts in RSS
Diffstat (limited to 'eleventy.config.js')
-rw-r--r-- | eleventy.config.js | 20 |
1 files changed, 2 insertions, 18 deletions
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)); |