© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. LibbyBeginning Eleventy https://doi.org/10.1007/978-1-4842-8315-8_3

3. Sourcing Data

Alex Libby1  
(1)
Belper, Derbyshire, UK
 

We have our page structure in place, so what next?

Ah yes – we need data! Data is essential to any site – when using Eleventy, we have several options available to us. We can use Markdown files, which keeps it relatively simple, or even use JavaScript files. What though if we had an existing data source, such as a CMS system?

No problem – Eleventy works fine with a range of sources, so for this chapter, we’ll first work through adding sample content to our site before exploring how we might bring in data from an external source such ...

Get Beginning Eleventy: A Practical Introduction to the Eleventy Static Site Generator now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.