I've been tinkering with a new Eleventy project and decided to fire it up using the 3 beta version. I started by creating two collections using markdown files. Each collection had a template…
If you've built sites using Eleventy, you're probably familiar with collections. Using the Configuration API allows for creating custom collections which can be useful to only show certain posts on your site.
11ty filter for returning a sorted list of tags from collections. Use the it in a template like {{ collections.foo | taglist }} to get the sorted tag list.
11ty filter for returning a sorted list of tags from collections. Use the it in a template like {{ collections.foo | taglist }} to get the sorted tag list. - sort-tags.js
Generate Page Content From a Global Data File Using Eleventy
There are many great features to choose from when building websites with Eleventy. One feature in particular that I find very useful is the ability to iterate over a global data file and generate page content using a templating language of your choice.
How to create a Tags collection and a Categories collection in Eleventy
I have the following two blocks of code in my .eleventy.js file
// Tags
eleventyConfig.addCollection('tagList', collection => {
const tagsSet = new Set();
collection.getA...
I have a simple Eleventy site v0.11.0
I'm using tag in the front matter to generate collections.
Ex:
---
title: Some post
tags:
- apple
- banana
- soccer
---
I want to show a list each of each ...
Eleventy comes with a built-in tagging system. For a recent project, I wanted to use my own category system, which led me to dive a bit deeper into extending and configuring Eleventy.
Making an 11ty collection from a remote XML file - Mike Street - Lead Developer and CTO
RSS is XML with a specification, however not all RSS feeds follow the spec. In this post, we process the feed as an XML document meaning we can access the extra attributes and values
Creating and Using Eleventy Collections | 11ty Rocks!
Collections allow you to group templates and then sort, filter, and perform other manipulations to customize the display of your template content and data.