One more try

This commit is contained in:
Zach Leatherman 2024-09-27 16:33:37 -05:00
parent fb5caf353b
commit f9522c3cb7

View File

@ -16,7 +16,7 @@ export default async function(eleventyConfig) {
});
eleventyConfig.addUrlTransform((page) => {
if (page.url.endsWith("/")) {
if (page.outputPath?.endsWith(".html") && url.endsWith("/")) {
return page.url.slice(0, -1);
}
});