Skip to content
New issue

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

I18n of pages in navigation header #136

Open
jonatanlinden opened this issue Nov 15, 2022 · 0 comments
Open

I18n of pages in navigation header #136

jonatanlinden opened this issue Nov 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jonatanlinden
Copy link

Hi, great work!

I'm interested in how to use eleventy with bilingual websites, so I started playing around with the v2 example. In a naive way, I symlinked en/about to es/about, hoping that would work as expected, that is, the link About in the top navigation would link to the correct language page, based on the url. Instead the link is duplicated, e.g., in the English language page there are two links 'About'.
I guess the reason is because of how the navigation header is generated, based on the following piece of yaml front matter

eleventyNavigation:
  key: nav.about
  order: 3

Have I missed something basic? Or is this just a consequence of how the navigation happened to be implemented in this example?

@zachleat zachleat added the enhancement New feature or request label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants