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

How to add an "About" section in a multilingual setup? #344

Open
juacq97 opened this issue Jun 9, 2020 · 1 comment
Open

How to add an "About" section in a multilingual setup? #344

juacq97 opened this issue Jun 9, 2020 · 1 comment

Comments

@juacq97
Copy link

juacq97 commented Jun 9, 2020

Hi! I have a little multilingual blog, I want to create an "about" menu, one in english and one on spanish. I added this:

    [languages.es.menu]
      [[languages.es.menu.main]]
        name = "Acerca"
        url = "/es/page/acerca"

    [languages.en.menu]
      [[languages.en.menu.main]]
        name = "About"
        url = "en/page/about"

and then created content/es/page/acerca.org and content/es/page/about.org but when I try the server and click on the about link I get "error 404". How I can add menus (about section)? thanks!

@whatacold
Copy link
Contributor

Hi,

I think this should work, i.e. without the language prefix, thought I haven't test it myself:

    [languages.es.menu]
      [[languages.es.menu.main]]
        name = "Acerca"
        url = "page/acerca"

    [languages.en.menu]
      [[languages.en.menu.main]]
        name = "About"
        url = "page/about"

I have a similar setup at https://whatacold.io/, hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants