kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
922 stars 203 forks source link

Updates `site.translations` docs #162

Closed chrisdaaz closed 4 years ago

chrisdaaz commented 4 years ago

I noticed that the site.translations docs as written throw a type error with bundle exec jekyll serve.

I think it's because {% for item in site.translations[site.lang]["my_nested_yaml_collection"] %} needs to be {% for item in site.translations[site.lang].my_nested_yaml_collection %}

I made the change, then added the example mentioned in https://github.com/kurtsson/jekyll-multiple-languages-plugin/issues/66#issuecomment-228619301, which also works (thanks @Anthony-Gaudino).

kurtsson commented 4 years ago

Thanks! <3