Global Data 84 posts
Category: GLOBAL DATA (84 posts)
2025
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)
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)
Updated Bookmarks
I've been using raindrop for my bookmarks and updated my bookmarks page
By Clayton Errington (19 posts)
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)
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)
How I Built This Website (With 11ty & CraftCMS)
Matt Richards - Senior Staff Product Engineer / Engineering Lead based in Berlin.
By Matthew Richards (1 post)
Cache-Busting Assets in Eleventy
Generate a sourcemap and add it to Eleventyโs global data.
By Aleksandr Hovhannisyan (14 posts)
Data vs. Collections in Eleventy
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)
A Test of Eleventy Fetch
Tweaking my 11ty blog to link to the Mastodon post defined in an Org Mode property
By Sacha Chua (4 posts)
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)
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)
Building a personal digital music library with Eleventy and APIs
Building a personal digital music library with Eleventy and APIs
By Damian Walsh (3 posts)
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)
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)
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)
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)
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)
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)
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
Accessible Eleventy Gallery
An adaptation of Kalechip's Static Accessible Gallery Generator for Eleventy.
By Sainthood (1 post)
Oops, I built a headless frontend with 11ty
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)
Building My Resume in HTML using Eleventy
By Michael Engen (1 post)
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)
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)
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)
Using Environment Variables in Eleventy Content Pages
Explains how you can use environment variables in Eleventy content pages
By Florian Eckerstorfer (9 posts)
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)
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)
Building a Web Version of Your Mastodon Archive with Eleventy
Turning your Mastodon archive into a web site with Eleventy
By Raymond Camden (104 posts)
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)
Adding a Photo Stream to an Eleventy Site
Fetching all my public photos from Flickr & putting them on my page
By nonnullish (3 posts)
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)
Umami API Top 10 Pages
Using the Umami API to show the Top 10 pages on my website
By Clayton Errington (19 posts)
Virtual Templates in Eleventy
In Eleventy 3.0, virtual templates enable plugin authors to publish and share dynamic templates.
By Aleksandr Hovhannisyan (14 posts)
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)
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)
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)
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)
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)
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)
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)
Fetching Package Dependents from GitHub
Using linkedom to grab all repositories that are depending on my post graph plugin
By Robb Knight (20 posts)
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)
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
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)
Using Wordpress as a headless CMS for Eleventy
Integrating WordPress Posts with 11ty
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
Track data across builds in 11ty
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)
Reading Comic Books in the Jamstack
Adding support for digital comic books to your Jamstack site
By Raymond Camden (104 posts)
2021
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)
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)
Eleventy 1.0 - Global Data via Plugins Example
A followup on my post concerning Eleventy's new addGloblData feature
By Raymond Camden (104 posts)
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)
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)
An Adobe PDF Embed Plugin for Eleventy
Eleventy users can now add a PDF Embed plugin to their sites
By Raymond Camden (104 posts)
Page Level URL Fetching with Eleventy
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)
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)
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)
Building a Database Driven Eleventy Site
Using a database (MySQL) to drive content for an Eleventy site
By Raymond Camden (104 posts)
Using PDFs with the Jamstack
Using the Adobe PDF Embed API to view PDFs on your Jasmstack site
By Raymond Camden (104 posts)
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)
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)
Accessing Eleventy Data on the Client Side
2020
Using Airtable with Eleventy
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)
Migrating from Node and Express to the Jamstack - Part 1
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)