-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
When enabling the RSS-plugin like this:
// RSS-feed
eleventyConfig.addPlugin(feedPlugin, {
type: "rss", // 'atom' or "rss", "json"
outputPath: "/feed.xml",
collection: {
name: "posts", // iterate over `collections.posts`
limit: 0, // 0 means no limit
},
metadata: {
language: "en",
title: "Blog Title",
subtitle: "This is a longer description about your blog.",
base: "https://example.com/",
author: {
name: "Your Name",
email: "", // Optional
}
},
htmlBasePluginOptions: {
baseHref: '/local-test/',
}
});
Having:
import { EleventyHtmlBasePlugin } from "@11ty/eleventy";
export default async function (eleventyConfig) {
// Make it possible to have the site served in a sub directory
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
};
And I run my site with:
``´
"watch:eleventy": "eleventy --serve --pathprefix=/minimal-mistakes/",
I get the following output in my regular site:
htmlBasePluginOptions: {
baseHref: '/local-test/',
}
<link href="/minimal-mistakes/minimal-mistakes/minimal-mistakes/feed.xml" type="application/atom+xml" rel="alternate" title="Minimal Mistakes Feed">
Removing the EleventyHtmlBasePlugin from my config, gives me:
So the pathprefix is outputted twice for my pages without me enabling the module at all.
This issue has also been created in the main 11ty repos - 11ty/eleventy#3547
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels