Define an Eleventy (11ty) Collection to Create a Blog

Share this video with your friends

Send Tweet
Published 2 years ago
Updated a year ago

Create a blog directory with posts for your Eleventy (11ty) project, and learn how to define the posts as an 11ty collection using tags. Then make a blog index page and write a for loop with Nunjucks to output a list of each post linked to the post page.

Luis Martinez
Luis Martinez
~ 5 months ago

In case anyone get a <pre><code>.. just remove the spaces before your list. In other words, don't indent