Skip to main content

7 posts by Rob O'Leary

Eleventy - Merge external data with an existing collection

I wanted to create an archive of all of my tech writing, merge content I wrote for other websites and my blog into a single collection. Here is how I did it.

Categories: CollectionsConfigurationGlobal DataHow to...

Eleventy - Group posts by year

Let's create a blog with posts grouped by year in descending order. This is actually tricky to pull off!

Categories: BloggingCollectionsConfigurationDatesHow to...

Eleventy - Differentiate between dev and production builds with unique favicons

It is easy to mix up the dev and production versions of a website in the browser. Let's make them look unique by using different favicons.

Categories: ConfigurationData CascadeDeploymentImages

Eleventy - Fetch data from the Github REST API to populate a projects page

We will populate a page with data from GitHub. We will use the eleventy-fetch plugin to do this with minimal code and refresh the data every 2 days.

Categories: FiltersGlobal DataLayoutsRemote Data

Eleventy - Get autocompletion and doc info in your eleventy config in VS Code

In VS Code, you don't get autocompletion in your eleventy config. You don't get info about functions when you hover over them. Here is how you add it.

Categories: ConfigurationHow to...

Eleventy - Create a global production flag

A production flag enables you to run activites in production only e.g. minifying assets. There isn't a built-in flag in eleventy. How can we add one?

Categories: ConfigurationGlobal DataHow to...Layouts

Should I upgrade to Eleventy 2.0?

Eleventy 2.0 was released at the beginning of February. It has some major new features. Is it worthwhile to upgrade? Is it painful to upgrade?

Categories: How to...

Get the blog by email (or RSS)

Powered by Buttondown