Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

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

Closed
ghost opened this issue Feb 27, 2018 · 0 comments
Closed

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

ghost opened this issue Feb 27, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 27, 2018

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 %} <div class="privacy__section"> <h4>{{ point.title }}</h4> <p>{{ point.text }}</p> {% if point.href %} <p> For further information please visit: <a href="{{ point.href }}">{{ point.link }}</a> </p> {% endif %} </div> {% endfor %}

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

Thanks.

@ghost ghost closed this as completed Mar 3, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants