Today I Learned…


By Vitor Freitas July 06, 2016

How to use Data Files with Jekyll

I came across this one while creating the new version of this website. Basically you must create a folder named _data in your project root.

You can create the data file as json, yml or csv. Find below an example of a data file in the yml format named social_networks.yml:

And now how to use it in your HTML files:

References

  1. https://jekyllrb.com/docs/datafiles/

jekyllyml