One more try
This commit is contained in:
parent
fb5caf353b
commit
f9522c3cb7
@ -16,7 +16,7 @@ export default async function(eleventyConfig) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addUrlTransform((page) => {
|
eleventyConfig.addUrlTransform((page) => {
|
||||||
if (page.url.endsWith("/")) {
|
if (page.outputPath?.endsWith(".html") && url.endsWith("/")) {
|
||||||
return page.url.slice(0, -1);
|
return page.url.slice(0, -1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user