Use new html base plugin!
Removes all the url filters
This commit is contained in:
@@ -4,6 +4,8 @@ module.exports = {
|
||||
// Change (English) /en/blog/my-post URLs to have an implied language code /blog/my-post URLs instead.
|
||||
let [slashPrefixEmpty, langCode, ...stem] = data.page.filePathStem.split("/");
|
||||
let path = stem.join("/");
|
||||
|
||||
// Account for `permalink: 404.html` style
|
||||
return stem[stem.length - 1] === "index" ? `${path}.html` : `${path}/index.html`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user