Eleventy

An ever-growing cheatsheet for Eleventy. I add things that I think are useful but difficult to unearth or understand.

General resources that I find helpful for Eleventy:

Contents

  1. Render all collection item page content on page

Render all collection item page content on page

You can easily render front matter or an excerpt, but what if you want to render the whole ‘below the fold’ within each collection item’s Markdown file? Use {{ item.templateContent | safe }} (within a loop of collection items).

This—combined with a max-character filter—might even be a more elegant way to show an excerpt in Eleventy.

Source