kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
923 stars 201 forks source link

.yml file in the language folder (en/de/es/....) #113

Closed ghost closed 6 years ago

ghost commented 6 years ago

hello there, i am currently working on a site using this plugin. I like to loop over a yml file in a language folder ? From the _data folder everything worked.

This is my code:

`{% assign pri = site.languageNames[site.lang][privacy] %} {% for point in pri %}

{{ point.title }}

{{ point.text }}

{% if point.href %}

For further information please visit: {{ point.link }}

{% endif %}

{% endfor %} `

The privacy.yml file is currently located in _i18n/en/privacy.yml

Thanks.