-
I'm using the Netlify CMS in i18n mode. The problem is when trying to manage a multi-lingual homepage, the files are saved as I save everything under How can I do this in my
I guess the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Actually, this was super easy once I wrapped my head around the eleventyComputed... :) module.exports = {
seo: {
robots: "all",
include_sitemap: true,
},
layout: "landing",
eleventyComputed: {
permalink(data) {
// remove the title/slug from file name for homepage,
// leave only locale.html for cleaner permalinks
return `${data.page.fileSlug.split(".")[1]}.html`;
},
},
}; |
Beta Was this translation helpful? Give feedback.
Actually, this was super easy once I wrapped my head around the eleventyComputed... :)