Revert trailing slash tests
This commit is contained in:
parent
107e6ca8d0
commit
7d06809766
@ -15,16 +15,6 @@ export default async function(eleventyConfig) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addUrlTransform((page) => {
|
|
||||||
if (page.url.endsWith(".html")) {
|
|
||||||
return page.url.slice(0, -1 * ".html".length);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
eleventyConfig.addGlobalData("permalink", () => {
|
|
||||||
return (data) =>
|
|
||||||
`${data.page.filePathStem}.${data.page.outputFileExtension}`;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Copy the contents of the `public` folder to the output folder
|
// Copy the contents of the `public` folder to the output folder
|
||||||
// For example, `./public/css/` ends up in `_site/css/`
|
// For example, `./public/css/` ends up in `_site/css/`
|
||||||
eleventyConfig
|
eleventyConfig
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"trailingSlash": true
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user