We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#/index.njk --- layout: false permalink: /index.html title: "Layout" locale: en dir: ltr eleventyNavigation: key: en title: Start Page ---
#/test2.njk --- layout: false permalink: /test2.html title: "Layout" locale: en dir: ltr eleventyNavigation: key: demo title: Demo ---
/*eleventryComputed.js*/ module.exports = { locale: (data) => { return data.locale || 'en' }, eleventyNavigation: { key: (data) => { if (data.eleventyNavigation.key || data.translationKey) { return ( data.locale + '_' + (data.eleventyNavigation.key || data.translationKey) ) } let tk = data.page.inputPath.split('/').slice(3).join('/') return tk }, title: (data) => data.eleventyNavigation.title || data.title, parent: (data) => { if (data.eleventyNavigation.parent || data.parent) { return ( data.locale + '_' + (data.eleventyNavigation.parent || data.parent) ) } return data.locale }, }, sitemap: (data) => { data.priority = data.priority || 0.5 data.changefreq = data.changefreq || 'monthly' return '' }, translationKey: (data) => { // remove "./src/{{locale}}" from path if (data.translationKey) { return data.translationKey } let tk = data.page.inputPath.split('/').slice(3).join('/') return tk }, }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: