Jekyll will look into the _data directory.

Working with yml files is as easy as adding a file in this directory, and Jekyll will expose its contents on the[YML_FILE_NAME].

In this example, rendering a list of authors listed in a YML file is as easy as:

{% raw %}
{% for authors in limit:8 %}
  {{ }}
{% endfor %}
{% endraw %}

The related Data file is located in _data/authors.yml with the following contents:

  name: Christian
  username: christian
  name: admin
  username: admin