• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
angeltapes

angeltapes

dprn-remix

DPRN are a loose collective of punk, grind and noise bands. We p
Remix of angeltapes/dprn
Public
Like
dprn-remix
Home
Code
5
src
8
.eleventy.js
README.md
H
index.ts
package.json
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
src
/
posts
/
building-with-eleventy.md
Code
/
src
/
posts
/
building-with-eleventy.md
Search
6/1/2025
building-with-eleventy.md
title:
Building Static Sites with Eleventy
description:
A guide to getting started with Eleventy static site generator
date:
2024-01-20T00:00:00.000Z
tags:
eleventy
tutorial
static-sites

Eleventy (11ty) is a simpler static site generator that's gained popularity for its flexibility and ease of use. In this post, I'll share some tips for building great static sites with Eleventy.

Key Features

Multiple Template Languages

Eleventy supports many template languages out of the box:

  • Markdown
  • Nunjucks
  • Liquid
  • Handlebars
  • Mustache
  • EJS
  • Haml
  • Pug

Collections

Collections are a powerful way to group related content:

// In .eleventy.js eleventyConfig.addCollection("posts", function(collectionApi) { return collectionApi.getFilteredByGlob("src/posts/*.md"); });

Filters

Custom filters help transform data:

eleventyConfig.addFilter("readableDate", dateObj => { return DateTime.fromJSDate(dateObj).toFormat("dd LLL yyyy"); });

Best Practices

  1. Organize your content - Use clear folder structures
  2. Use data files - Store site-wide data in _data/
  3. Create reusable includes - Build modular templates
  4. Optimize images - Use appropriate formats and sizes
  5. Test locally - Always test before deploying

Performance Tips

  • Minimize CSS and JavaScript
  • Optimize images
  • Use semantic HTML
  • Implement proper caching headers
  • Consider a CDN for static assets

Eleventy makes it easy to build fast, maintainable static sites. Give it a try for your next project!

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.