TILs, snippets—my digital code garden 🌱. By Zander Martineau
All tags All notes javascript (52) css (37) react (33) typescript (17) html (14) cheatsheet (9) testing (8) devops (5) git (5) node (4) cli (4) graphql (4) storybook (2) 11ty (2) typography (2) svelte (2) networking (1) services (1) api (1) a11y (1) ai (1) computer-science (1) cpp (1) deno (1) golang (1) animation (1) messaging (1) backend (1) performance (1) php (1) sql (1) python (1) rust (1) sveltekit (1) interview (1) questions (1) cypress (1) terminal (1) vscode (1) untagged (16)
© 2026 • Made by Zander • Colophon • RSS

⓫ Eleventy

Link https://www.11ty.dev/docs/
Note date 21 Jan, 2026
Tags 11ty
On this page
  1. Eleventy config
    1. Add a filter

Eleventy config Jump to heading

Add a filter Jump to heading

eleventyConfig.addFilter('readableDate', (dateObj) => {
return DateTime.fromJSDate(dateObj, { zone: 'utc' }).toFormat('dd LLL, yyyy')
})

Usage:

{{ page.date | readableDate }}

← Back home