⚠️ This lesson is retired and might contain outdated information.

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

Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 2 years 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
~ 2 years ago

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

Markdown supported.
Become a member to join the discussionEnroll Today