-
Notifications
You must be signed in to change notification settings - Fork 61
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
Localising the default layout #81
Comments
I see that in the LogRhythm website you have subdomains for languages but how do you build the home pages in different languages? I'd love to have a tip on how to do that for my site. |
Hey @BernardoMed, So I cannot tell you how the Logrhythm website does it's full layout. In fact they made recent changes that I was not involved in. I'm not sure how they recently setup the language subdomains, so I cannot help you with that. I can tell you how the example polyglot website works. In fact, it's source code is included on this repo.
You are going to want to make multiple Cheers, |
Right @untra, I have one index.md for each language (index.es.md, index.en.md, index.pt.md), one layout > home.html for each language (home-en.html ... ) and one layout > default.html for each language (default-en.html ...) I also have one of each _includes file for each language. I discovered that if I change the language and layout of the index.md file, it changes the layout to the required language so the million dollars question is: What do I have to do in order to get the correct index.md file to be loaded when the corresponded language is selected by the user? Once again, thanks for your help. |
This is more a question than an issue.
How would I localise the default layout in order to have my includes in different languages?
I managed to get my menu to dynamically sort the language with this liquid code:
but I wasn't able to get my default layout to pick the includes accordingly to the
site.active_language
any suggestion?Cheers
The text was updated successfully, but these errors were encountered: