Global Data 84 posts

Category: GLOBAL DATA (84 posts)

2025

favicon for site or author

Eleventy - todayโ€™s date as a global variable

Sometimes, you want to use today's date in a template. One example is a copyright notice that includes the current year. Not all templating languages provide a simple way to get the current date.

By Rob O'Leary (13 posts)

favicon for site or author

I built a tiny RSS generator for my Advent of Code solutions

My current publishing setup for my notes doesnโ€™t allow separate feeds for different categories so I built a small tool for my website to add entries manually to a separate feed with a single CLI call.

By Juha-Matti Santala (22 posts)

favicon for site or author

Updated Bookmarks

I've been using raindrop for my bookmarks and updated my bookmarks page

By Clayton Errington (19 posts)

favicon for site or author

From Dotclear to Eleventy 4

How to migrate a blog from Dotclear on to eleventy 4- Rebuild pages and navigation

By Alix Guillard (4 posts)

favicon for site or author

exhibitionism

making a static gallery with 11ty

By tlohde (2 posts)

favicon for site or author

Leveraging Eleventyโ€™s custom data file format feature for simpler game scoring format

While building a website for our Pokรฉmon TCG tournament series, I discovered a new handy tool within Eleventy to enable custom data formats.

By Juha-Matti Santala (22 posts)

Categories

How I Built This Website (With 11ty & CraftCMS)

Matt Richards - Senior Staff Product Engineer / Engineering Lead based in Berlin.

By Matthew Richards (1 post)

favicon for site or author

Cache-Busting Assets in Eleventy

Generate a sourcemap and add it to Eleventyโ€™s global data.

By Aleksandr Hovhannisyan (14 posts)

favicon for site or author

Data vs. Collections in Eleventy

The home base of Mark Dyck, a baker who writes

By Mark Dyck (1 post)

favicon for site or author

Providing next event as API with Eleventyโ€™s Global Data Files and Netlify Functions

I wanted to provide a programmatic access to the next event in our communityโ€™s event calendar and combined Eleventy and Netlify Functions to achieve it.

By Juha-Matti Santala (22 posts)

favicon for site or author

A Test of Eleventy Fetch

A quick look at the Eleventy Fetch plugin.

By Raymond Camden (104 posts)

favicon for site or author

Generating absolute URLs in my RSS feed(s)

My RSS feeds are generated by 11ty at build time from a Liquid.js template. When I wrote posts and link elsewhere on my site I use a bookmarklet to capture the URI for linking. To ensure I have absolute URLs in my feeds, I use a filter to convert said

By Cory Dransfeldt (46 posts)

favicon for site or author

How I Built Shopify Theme Vitals using 11ty and CrUX

Building a site that shows real-user web performance data by Shopify theme using HTTP Archive, the Chrome User Experience Report, BigQuery, Node, and 11ty

By Sia Karamalegos (13 posts)

favicon for site or author

Building a resume website with eleventy

i share how i built a fully customizable resume website with eleventy, complete with seo-friendly features and pdf generation.

By Keith Kurson (3 posts)

favicon for site or author

11ty Meetup - How I built my Books page

I presented at the 11ty Meetup on how I built my Books page. Here's the video and a link to a PDF of the slides.

By Bob Monsour (20 posts)

favicon for site or author

Building a Quiz System With Eleventy

Remember when internet quizzes were a thing? I wanted to bring them to my website.

By Nathan Upchurch (4 posts)

favicon for site or author

Managing My Books Data

Why do something manually (that takes a few seconds to do), when a script (created over the course of several hours) can do it for you?

By Spencer Harston (2 posts)

favicon for site or author

Creating a Books Page

How and why I decided to create a Books page to keep track of my reading.

By Spencer Harston (2 posts)

favicon for site or author

WP.SCSS

Increasingly I've been including 11ty in my WordPress builds as part of the theme. Great for static assets, such as

By Rich Holman (2 posts)

favicon for site or author

How I built the Books page

I went live with my Books page a short while ago. Here's how I built it.

By Bob Monsour (20 posts)

2024

favicon for site or author

Accessible Eleventy Gallery

An adaptation of Kalechip's Static Accessible Gallery Generator for Eleventy.

By Sainthood (1 post)

favicon for site or author

Oops, I built a headless frontend with 11ty

Building a headless HelpScout docs site with 11ty.

By Adam Stoddard (2 posts)

favicon for site or author

Here's how this is all put together

I've been fiddling with this site for the better part of a year now and now that it's fairly stable, I'm putting together what amounts to a public `README` (or a note to self). This post is that document.

By Cory Dransfeldt (46 posts)

favicon for site or author

Open Graph Metadata and Images in Eleventy Made Easy

Blog posts are meant to be shared. When sharing links, youโ€™ll often see a preview on social media and instant messengers. But how does it work and how can you do it with Eleventy?

By Sebin Nyshkim (3 posts)

favicon for site or author

11ty meetup: Tracking and displaying music history

I got to speak at the 11ty meetup today about the music tracking contraption I've built into my site. I have a fairly detailed post on how I built it and [another on the method I'm using to render dynamic media (read: m

By Cory Dransfeldt (46 posts)

favicon for site or author

Building a Blog with Eleventy

I recently felt like getting back into blogging. But setting up and maintaining WordPress felt like more than I was looking for. I was looking for something much simpler. Preferably file-based and with Markdown support. That was my introduction to Eleventy.

By Sebin Nyshkim (3 posts)

favicon for site or author

Using Environment Variables in Eleventy Content Pages

Explains how you can use environment variables in Eleventy content pages

By Florian Eckerstorfer (9 posts)

favicon for site or author

Simple Eleventy 3 Excerpts

Sometimes it makes sense to write a unique excerpt. But sometimes the beginning of the page content works well enough, which is why manyโ€ฆ

By Tyler Sticka (3 posts)

favicon for site or author

GitHub Pages Reboot With 11ty

I've had my repos listed on my GitHub pages for 14 years, it was time to revisit it.

By John Hobbs (4 posts)

favicon for site or author

Adding the New Mastodon Link Attribution Meta Tag

Chris McLeod is a software developer with over 20 years of experience. Sometimes he writes about it.

By Chris McLeod (7 posts)

favicon for site or author

Adding a Photo Stream to an Eleventy Site

Fetching all my public photos from Flickr & putting them on my page

By nonnullish (3 posts)

favicon for site or author

New Reading page, powered by the Airtable API

A walkthrough on how I used Eleventy and the Airtable API to power a bookshelf pages with books Iโ€™ve read

By Melanie Richards (1 post)

favicon for site or author

Umami API Top 10 Pages

Using the Umami API to show the Top 10 pages on my website

By Clayton Errington (19 posts)

favicon for site or author

Virtual Templates in Eleventy

In Eleventy 3.0, virtual templates enable plugin authors to publish and share dynamic templates.

By Aleksandr Hovhannisyan (14 posts)

favicon for site or author

Eleventy - Merge external data with an existing collection

I wanted to make an archive of my writing, merging content I wrote for other websites with my exising 'posts' collection. Here is how I did it.

By Rob O'Leary (13 posts)

favicon for site or author

Version 3

I'll show you the true power of being third!

By Devin Haska (2 posts)

favicon for site or author

Using Eleventy to Gobble Up Everything I Do Online

A blog post about how my site works based on a talk I did at the Eleventy meetup

By Robb Knight (20 posts)

favicon for site or author

Using B2 as a JSON data store

My links page is powered by the Readwise Reader API but because there are, quite reasonably, rate limits in place, I've gone ahead and reduced the page count I fetch on each build and cached older link data from past builds in a B2 bucket.

By Cory Dransfeldt (46 posts)

favicon for site or author

How to connect Eleventy and Storyblok

This is a step-by-step tutorial on how to query data from Storyblok to use it in an Eleventy project.

By Estela Franco (4 posts)

favicon for site or author

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.

By Rob O'Leary (13 posts)

favicon for site or author

Community websites with Eleventy

With Eleventyโ€™s data files, Iโ€™ve come up with a good setup to build landing pages for communities that organize events.

By Juha-Matti Santala (22 posts)

favicon for site or author

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?

By Rob O'Leary (13 posts)

favicon for site or author

Fetching Package Dependents from GitHub

Using linkedom to grab all repositories that are depending on my post graph plugin

By Robb Knight (20 posts)

favicon for site or author

Adding webmentions to my site

I had told myself that I wouldn't do this...but, seeing them on other people's sites changed my mind.

By Bob Monsour (20 posts)

favicon for site or author

Hiding Future Posts in Eleventy

Describes how to hide posts with a future publishing date in an Eleventy site.

By John M. Wargo (45 posts)

2023

favicon for site or author

Programmatically importing your Last.fm listening data to ListenBrainz

I love Last.fm, but in the interest of redundancy, Ive started programmatically importing my listening data from Last.fm into ListenBrainz.

By Cory Dransfeldt (46 posts)

favicon for site or author

Using Wordpress as a headless CMS for Eleventy

How I avoided having to re-learn PHP and love Eleventy.

By Mike Aparicio (4 posts)

favicon for site or author

Integrating WordPress Posts with 11ty

A digital garden of sorts; always growing ๐ŸŒฑ

By Kevin Gimbel (1 post)

favicon for site or author

Scratch that...use the Google Sheets API

Just generating a json file from Google Sheets was not good enough. I had to use the API.

By Bob Monsour (20 posts)

2022

favicon for site or author

Track data across builds in 11ty

Count how many rebuilds 11ty has done in the current session.

By John Brooks (4 posts)

Categories
favicon for site or author

11ty Second 11ty: Global Data files (JS and JSON)

In these two videos, we take 110 seconds each to discuss how to use 11ty's Global Data files to pull static data with JSON and dynamic (at build time) data with JavaScript.

By Bryan Robinson (15 posts)

Categories
favicon for site or author

Reading Comic Books in the Jamstack

Adding support for digital comic books to your Jamstack site

By Raymond Camden (104 posts)

2021

favicon for site or author

Dynamically choosing a data file to use in Eleventy templates

What if I need _data/stuff.json sometimes and _data/thing.json other times?

By Cassey Lottman (12 posts)

favicon for site or author

Configuring Web Fonts in 11ty with Global Data

Use global data in 11ty to create a single configuration for fonts that you can reference in your templates and CSS.

By Aleksandr Hovhannisyan (14 posts)

Categories
favicon for site or author

Eleventy 1.0 - Global Data via Plugins Example

A followup on my post concerning Eleventy's new addGloblData feature

By Raymond Camden (104 posts)

Categories
favicon for site or author

Eleventy 1.0 - New Option for Global Data

A look at a new way to create global data for Eleventy 1.0 sites.

By Raymond Camden (104 posts)

Categories
favicon for site or author

Using PDFs with the Jamstack - Building a Document Viewer

Using Adobe PDF Services to build a document viewer for your Jamstack site

By Raymond Camden (104 posts)

Categories
favicon for site or author

An Adobe PDF Embed Plugin for Eleventy

Eleventy users can now add a PDF Embed plugin to their sites

By Raymond Camden (104 posts)

favicon for site or author

Page Level URL Fetching with Eleventy

Making a network request on a page with Eleventy

By Raymond Camden (104 posts)

favicon for site or author

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.

By Tanner Dolby (2 posts)

Categories
favicon for site or author

Creating an 11ty collection from a JSON API

Using 11ty Global data files, you can make collections from JSON APIs, allowing you to make whole websites from one endpoint

By Mike Street (13 posts)

favicon for site or author

Creating pages from data with Eleventy

Eleventy has the ability to generated multiple pages from a structured data source, either static JSON or JSON dynamically generated by JavaScript code.

By Florian Eckerstorfer (9 posts)

favicon for site or author

Building a Database Driven Eleventy Site

Using a database (MySQL) to drive content for an Eleventy site

By Raymond Camden (104 posts)

favicon for site or author

Using PDFs with the Jamstack

Using the Adobe PDF Embed API to view PDFs on your Jasmstack site

By Raymond Camden (104 posts)

favicon for site or author

I Finally Understand Eleventy's Data Cascade

Where does Eleventy get all of its data? Which data overrules other data? Iโ€™ve documented my whole mental model of Eleventyโ€™s data cascade.

By Ben Myers (6 posts)

favicon for site or author

Site Metadata

A useful technique to manage site metadata (title, description, url, etc) for ease of retrieval throughout templates and content.

By Stephanie Eckles (21 posts)

favicon for site or author

Accessing Eleventy Data on the Client Side

Accessing Eleventy data files in your JavaScript code

By Raymond Camden (104 posts)

2020

favicon for site or author

Using Airtable with Eleventy

A long-winded look at getting Airtable data into Eleventy.

By Dana Byerly (8 posts)

favicon for site or author

Using Eleventy data files for frequently used links

Have a set of frequently referenced links? A global data file can come in handy.

By Dana Byerly (8 posts)

favicon for site or author

Building a website with a static site generator, part 2: Eleventy

In this post, we're gonna take a deeper look into Eleventy which takes care of building the website by combining layout templates with blog post data from Markdown files.

By Juha-Matti Santala (22 posts)

Some content below may have been published before the release of Eleventy v3.0.0 (October 1, 2024). Information may have changed in newer versions. Current stable release: 3.12
Some content below may have been published before the release of Eleventy v2.0.0 (Feb 8, 2023). Information may have changed in newer versions. Current stable release: 3.12.
Some content below may have been published before the release of Eleventy v1.0.0 (Jan 8, 2022). Information may have changed in newer versions. Current stable release: 3.12.
All of the content below was published before the release of Eleventy v1.0.0 (Jan 8, 2022). Information may have changed in newer versions. Current stable release: 3.12.