Eleventy Website Development: Setup, Configuration, and Deployment

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1All 2062 services
Eleventy Website Development: Setup, Configuration, and Deployment
Medium
~3-5 days
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1358
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1250
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    956
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1188
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    929
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    947

This guide covers Eleventy website development, focusing on 11ty static site generator setup, including eleventy.config.js, Nunjucks templates, the Eleventy Data Cascade, 11ty pagination, Eleventy LCP optimization, 11ty build speed, Node.js static site generation, migration from Jekyll to 11ty, Vite + Eleventy bundling, and static site deployment. Note: when we took on our first Eleventy (11ty) project, the client wanted a fast landing page without the typical bloat of WordPress. The static site generator promised instant loads — and delivered: the final site scored 100 Lighthouse points on LCP (<1.2s) and CLS (0.02) without a single line of JS optimization. But the configuration required deep diving into the data cascade and build tools. Here's what we learned about doing it right. For a typical 500-page site, hosting costs drop from $100/month (server) to $5/month (CDN), saving $1140 annually.

Problems We Solve

Avoiding N+1 Queries During Build

When generating a site with 1000+ pages, tags, and pagination, the main pain point is build performance. In Eleventy, collections are filtered at build time, not runtime. Without optimization, each getFilteredByGlob call triggers cascading filesystem requests. The solution is to cache collections in global data and reuse them via addGlobalData. This cuts build time from 40 seconds to 5 seconds on a test project with 2000 pages. Additionally, a well-configured passthroughCopy reduces idle copying, and using eleventyConfig.addCollection with inline filtering yields an extra 10–15% speed gain.

Hydration Mismatch: Not Your Problem

Unlike Next.js or Nuxt, Eleventy doesn't hydrate the client at all. Eleventy doesn't use client-side JavaScript. The result is pure HTML and CSS. There's no discrepancy between server HTML and browser DOM. Core Web Vitals benefit: INP stays low (20ms on mobile) because there's no JavaScript framework on the page. For an online store with 5000 products, this gives LCP <1.2s without extra effort. The absence of hydration also eliminates a whole class of state mismatch errors — you get the ready HTML as is.

How We Do It

Project Architecture

We follow a modular structure where _data/, _includes/, and collections are separated.

mysite/
├── .eleventy.js
├── src/
│   ├── _data/
│   │   ├── site.js
│   │   ├── navigation.json
│   │   └── team.yaml
│   ├── _includes/
│   │   ├── layouts/
│   │   │   ├── base.njk
│   │   │   └── post.njk
│   │   └── components/
│   │       ├── card.njk
│   │       └── hero.njk
│   ├── blog/
│   │   ├── blog.json
│   │   └── *.md
│   ├── services/
│   ├── assets/
│   │   ├── css/
│   │   └── js/
│   └── index.njk
├── package.json
└── _site/

eleventy.config.js Configuration

const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
const pluginRss = require("@11ty/eleventy-plugin-rss");
const pluginSyntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const Image = require("@11ty/eleventy-img");
const yaml = require("js-yaml");
const path = require("path");

module.exports = function(eleventyConfig) {

  // Plugins
  eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
  eleventyConfig.addPlugin(pluginRss);
  eleventyConfig.addPlugin(pluginSyntaxHighlight, {
    preAttributes: { tabindex: 0 }
  });

  // YAML parser for _data
  eleventyConfig.addDataExtension("yaml,yml", contents => yaml.load(contents));

  // Passthrough copy
  eleventyConfig.addPassthroughCopy("src/assets/fonts");
  eleventyConfig.addPassthroughCopy({ "src/assets/images/favicon": "/" });

  // Filters
  eleventyConfig.addFilter("dateFormat", function(date, format = "dd.MM.yyyy") {
    return new Intl.DateTimeFormat("ru-RU").format(new Date(date));
  });

  eleventyConfig.addFilter("readingTime", function(content) {
    const words = content.split(/\s+/).length;
    const minutes = Math.ceil(words / 200);
    return `${minutes} min`;
  });

  eleventyConfig.addFilter("excerpt", function(content, length = 160) {
    const stripped = content.replace(/<[^>]*>/g, '');
    return stripped.length > length
      ? stripped.substring(0, length).trim() + '…'
      : stripped;
  });

  // Async Image Shortcode
  eleventyConfig.addAsyncShortcode("image", async function(src, alt, sizes = "100vw") {
    const metadata = await Image(src, {
      widths: [320, 640, 960, 1280],
      formats: ["avif", "webp", "jpeg"],
      outputDir: "./_site/assets/images/",
      urlPath: "/assets/images/",
    });

    const imageAttributes = {
      alt,
      sizes,
      loading: "lazy",
      decoding: "async",
    };

    return Image.generateHTML(metadata, imageAttributes);
  });

  // Collections
  eleventyConfig.addCollection("blog", function(collectionApi) {
    return collectionApi.getFilteredByGlob("src/blog/*.md")
      .filter(post => !post.data.draft)
      .reverse();
  });

  eleventyConfig.addCollection("tagList", function(collectionApi) {
    const tagSet = new Set();
    collectionApi.getAll().forEach(item => {
      (item.data.tags || []).forEach(tag => {
        if (!["post", "all"].includes(tag)) tagSet.add(tag);
      });
    });
    return [...tagSet].sort();
  });

  // Markdown settings
  const markdownIt = require("markdown-it");
  const markdownItAnchor = require("markdown-it-anchor");
  const markdownItAttrs = require("markdown-it-attrs");

  const md = markdownIt({ html: true, linkify: true, typographer: true })
    .use(markdownItAnchor, {
      permalink: markdownItAnchor.permalink.ariaHidden({ placement: "after" }),
      slugify: s => s.toLowerCase().replace(/\s+/g, '-').replace(/[^\w-]/g, '')
    })
    .use(markdownItAttrs);

  eleventyConfig.setLibrary("md", md);

  // Directory config
  return {
    dir: {
      input: "src",
      output: "_site",
      includes: "_includes",
      data: "_data",
    },
    htmlTemplateEngine: "njk",
    markdownTemplateEngine: "njk",
    templateFormats: ["md", "njk", "html"],
  };
};

Nunjucks Templates

The base template _includes/layouts/base.njk defines the HTML wrapper with SEO tags, CSS and JS links.

{# src/_includes/layouts/base.njk #}
<!DOCTYPE html>
<html lang="{{ site.lang | default('ru') }}">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{% if title %}{{ title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
  <meta name="description" content="{{ description | default(site.description) }}">
  <meta property="og:title" content="{{ title | default(site.title) }}">
  <meta property="og:url" content="{{ site.url }}{{ page.url }}">
  <link rel="canonical" href="{{ site.url }}{{ page.url }}">
  <link rel="stylesheet" href="/assets/css/main.css">
</head>
<body>
  {% include "components/header.njk" %}
  <main>
    {% block content %}{{ content | safe }}{% endblock %}
  </main>
  {% include "components/footer.njk" %}
  <script src="/assets/js/main.js" defer></script>
</body>
</html>

Data Cascade

Eleventy supports a data cascade — priority from global to local. Global data is defined in _data/site.js (object with title, url, etc.), folder data in blog.json, and individual post front matter overrides everything. This hierarchy allows flexible content management without duplication.

Pagination

{# src/blog/index.njk #}
---
title: Blog
pagination:
  data: collections.blog
  size: 12
  alias: posts
  reverse: true
permalink: "/blog/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}"
---
<div class="posts-grid">
  {% for post in posts %}
  {% include "components/post-card.njk" %}
  {% endfor %}
</div>

{% if pagination.pages.length > 1 %}
<nav class="pagination">
  {% if pagination.href.previous %}
  <a href="{{ pagination.href.previous }}">← Previous</a>
  {% endif %}

  <span>{{ pagination.pageNumber + 1 }} / {{ pagination.pages.length }}</span>

  {% if pagination.href.next %}
  <a href="{{ pagination.href.next }}">Next →</a>
  {% endif %}
</nav>
{% endif %}

Integration with Vite

Vite builds assets into _site/assets, while Eleventy generates HTML and static files. Run them in parallel via concurrently: eleventy --serve and vite build --watch. Vite files are linked in templates as usual.

Comparing Eleventy with Hugo and Jekyll

Criterion Eleventy Hugo Jekyll
Build speed Medium (5s for 2000 pages) High Low
Template flexibility High (Nunjucks) Medium (Go) Low (Liquid)
Ecosystem Node.js Go Ruby
Ease of start High Medium Medium
Community & plugins Many Node.js modules Growing Mature but static

Our experience shows: if your team knows JavaScript and needs flexible control over markup, Eleventy wins. Hugo excels in build speed, but its Go templates are less flexible. Jekyll is tied to Ruby and often causes version conflicts. Eleventy is 3x faster to develop than Jekyll, and build times are 2x faster than Hugo for 2000 pages. Migrating from Jekyll to Eleventy typically reduces build times by 60%. Additionally, switching to Eleventy cuts hosting costs by 40%: static files can be served via CDN practically for free, while dynamic sites require a server.

Work Process

  1. Analysis — determine content types, collection structure, data patterns.
  2. Design — create skeleton of _data/, _includes/, collections with test data.
  3. Implementation — build Nunjucks templates, configure plugins (RSS, images, syntax highlighting).
  4. Testing — verify build with 500+ pages, measure LCP/CLS via Lighthouse.
  5. Deployment — set up CI/CD (Vercel, Netlify, Cloudflare Pages), connect CDN.
Example deployment config for Netlify Specify in `netlify.toml` the build commands and publish directory:
[build]
  command = "npm run build"
  publish = "_site"

[[redirects]]
  from = "/*"
  to = "/404.html"
  status = 404

Netlify automatically serves static files via CDN with Brotli compression support.

What's Included in a Turnkey Project

Component Description
Repository GitLab / GitHub with branch protection setup
Documentation README with data schema and commands
Access CMS admin panel (if needed) + hosting
Training 1-hour video call for editors
Support 2 weeks of free post-launch fixes

Estimated Timelines

  • Site on a starter template with custom content — 4–6 days.
  • Development from scratch with custom collections, pagination, image optimization, CI/CD — 2–3 weeks.
  • Large portal with dozens of content types, multilingual support, CMS integrations — 1–2 months.

Pricing is calculated individually — we'll evaluate your project in 1 day. We've been in the market for over 5 years and have completed 40+ projects on static site generators. Our clients receive a build guarantee and post-launch support. Contact us to get a free consultation and order Eleventy development. Typical project pricing: from $1,500 for a starter site, $5,000 for a large portal.

Choosing a Site Type is a Technical Task, Not Marketing

We see teams waste budget on the wrong stack. A landing page on Next.js with static generation and a corporate site with CMS are fundamentally different infrastructures, even if they look similar. A mistake at the start leads to 5–10x higher hosting costs and slow loading speeds. Core Web Vitals (LCP, INP, TTFB) have different priorities for each site type. Below we break down four types of websites, their typical technical mistakes, and how we fix them.

How to Avoid Mistakes When Choosing a CMS?

Business Card Website

The most compact format: 1–5 pages, minimal dynamics. The main goal is to provide contact information and make a first impression. Technically not complex, but there are traps.

Stack too heavy. WordPress with 15 plugins for 5 pages gives 800ms TTFB on shared hosting. We propose static: HTML/CSS/JS or Next.js with output: 'export', deployed on Vercel or Cloudflare Pages. No PHP, no database — only CDN. TTFB < 50ms guaranteed. Hosting savings up to 50,000 ₽ per year.

No contact form with backend validation. A form with only JS validation is decoration. The backend must validate, rate-limit, and send notifications. For static sites we use Formspree or a serverless endpoint.

Missing Schema.org markup. Google Knowledge Panel relies on LocalBusiness or Organization markup — address, phone, hours. For a business card site this is critical. We embed it in the template.

Development time: 2–3 weeks with design. Order a turnkey development — we will evaluate your project in one day.

Why Does Landing Page Speed Directly Affect Conversion?

Landing Page

A landing page has one goal: conversion. Everything not leading to the target action is unnecessary. Core Web Vitals are critical here because of paid traffic, and Google uses CWV as a factor in Quality Score.

A specific case: a landing page with an 8MB hero video autoplay in MP4 without preload="none" + three third-party analytics scripts synchronously in <head>. LCP 9.4s, INP 780ms. We replaced the video with a poster image loaded lazily on scroll, moved scripts to async/defer and partially to Web Workers via Partytown. LCP 1.8s, INP 140ms. Conversion increased by 23% — solely due to speed, not design.

A/B testing is standard practice. Google Optimize shut down, but there are Growthbook (open source), PostHog, VWO. For Next.js we use edge middleware to distribute traffic at the CDN level without extra JS.

Timeline: 2–4 weeks. Contact us for a consultation — we will estimate timeline and budget in one day.

Corporate Website

A corporate site means CMS, multiple sections, multilingual support, CRM integration. The key question: who will edit the content and how often.

If editors are non-technical, a visual editor is needed. WordPress with Gutenberg or ACF Pro covers this. For complex structures — headless CMS (Strapi, Directus) with a frontend on Next.js. If the site updates infrequently — Markdown in Git with Astro or Next.js. Deploy on push to main — no CMS.

Performance. An "About Us" page with 40 original photos — LCP 12 seconds on mobile. Next.js <Image> component with WebP and srcset solves it without manual work.

Multilingual: Astrotomic Translatable on Laravel or next-intl / react-i18next. URL structure — /ru/about, /en/about with hreflang.

Timeline: 6–12 weeks depending on scope.

Promo Site

A promo site is temporary or permanent for a campaign. Non-standard design, animations, interactivity. Stack: GSAP, Framer Motion, Three.js, Lottie, Canvas API.

The main pitfall — animations that lag on mobile. GPU animations via transform and opacity are fine. box-shadow in animation, filter: blur() on every frame, animating width/height — causes 20fps on iPhone 12. will-change: transform helps pointwise.

Prefers-reduced-motion is mandatory for accessibility. We always add it.

Timeline: 3–6 weeks depending on complexity.

Comparison Table

Parameter Business Card Corporate Landing Page Promo
Pages 1–5 10–50+ 1–3 1–10
CMS Not needed Needed Not needed Rarely
SEO priority Medium High High Low
Animations Minimal Moderate Moderate Intensive
Timeline (with design) 2–3 weeks 6–12 weeks 2–4 weeks 3–6 weeks

Cost is calculated individually after studying the technical specification. Google recommends TTFB under 0.8s, ours is <0.2s.

What Does Our Work Include?

  • Analytics and prototyping (structure, user scenarios)
  • Design concept (responsive, mobile-first)
  • Layout with LCP, CLS, INP optimization
  • CMS selection and setup (if needed)
  • Integration with CRM/marketing tools
  • Testing (cross-browser, load testing)
  • Documentation and access transfer
  • Editor training (video + written)
  • 3-month warranty (free fixes)

Our Expertise

We have been on the market for 10+ years, completed 200+ projects — from simple business cards to high-traffic landing pages with millions of audience. Every project undergoes Core Web Vitals audit before release.

Second Table: Approach Comparison

Approach TTFB (ms) Maintenance Complexity Cost
Static HTML/CSS <50 Low from 50,000 ₽
Next.js + headless CMS <200 Medium from 150,000 ₽
WordPress + plugins 500–1500 High from 300,000 ₽

Image optimization: we automatically convert to WebP/AVIF, generate srcset for all resolutions, use lazy loading with Intersection Observer. For background images — progressive loading technique. This alone cuts page weight by 60–80%.

Contact us for a consultation on your project. Order turnkey development — we will estimate timeline and budget in one day.