© 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_4

4. Creating Templates

Alex Libby1  
(1)
Belper, Derbyshire, UK
 

So far, we’ve created our initial site, set up the structure, and added data, but everything looks like we’ve thrown it on a page and that it needs structure! No problem, we can fix that by using templates. These will help us to lay out the content properly, so it’s easy for customers to read.

We can use any one of several different tools for this job – this might be anything from Handlebars to Nunjucks, or even just standard HTML. This chapter will explore how templates work in Eleventy and begin to create something for our demo ...

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.