-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Multiple languages #129
Comments
We don’t have a defined way of doing this, but using an index as you have seems like a great approach. I’d be happy to add this as an example to the docs, probably in the indexing section. Would you care to send a pull request with this? I’ve also given it some thought and if there’s a desire we could incorporate such functionality. One idea I had is that content could be tagged with a “language” by extension. for example: We could then render the permalinks to domain.com/my_blog_post/ and es.domain.com/my_blog_post/ I’m just not sure this solution is right for enough use cases. The nice thing about indexes is they are flexible enough to do things like this. Feedback welcome. Best, -- On November 21, 2013 at 11:14:52 AM, Egon Elbre (notifications@github.com) wrote: I'm not sure what the best way is to do multilingual sites with this. Maybe an example would be useful with this. I use currently this technique... on each page header: lang: "et" And in the menu generation:
Is there an easier way to do this? — |
I finally got everything working as needed. I'll make a pull request once I put together a better example. The problems I encountered were following:
My totally biased opinion on these things are... (of course do regard them as opinions... people have different needs... and etc.):
I am also bit confused how the correct layout is found. Documentation for the layout finding, could be a simple: for "content/news/sub/item.html" it will try these templates in order... "layouts/news/single.html", "layouts/_default/single.html"... (Don't let the bugs/issues I encountered discourage you... for me it's already nicer to use than jekyll... so great work :) Best, |
|
Egon, This is wonderful feedback. I think the new dimension here is the i18n aspect of what you're doing. Also...indexes need some tlc. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm not sure what the best way is to do multilingual sites with this. Maybe an example would be useful with this.
I use currently this technique... on each page header:
And in the menu generation:
Is there an easier way to do this?
The text was updated successfully, but these errors were encountered: