This commit is contained in:
Zach Leatherman
2024-09-27 16:35:42 -05:00
parent f9522c3cb7
commit 644b1f09f0
+1 -1
View File
@@ -16,7 +16,7 @@ export default async function(eleventyConfig) {
});
eleventyConfig.addUrlTransform((page) => {
if (page.outputPath?.endsWith(".html") && url.endsWith("/")) {
if (page.url.length > 1 && page.url.endsWith("/")) {
return page.url.slice(0, -1);
}
});