URL only
This commit is contained in:
parent
f9522c3cb7
commit
644b1f09f0
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user