Static site generation with 11ty

The Covid site uses Eleventy (11ty) for static site generation (SSG). During the site build, 11ty reads HTML snippets to merge content with functional components into complete HTML pages. The HTML pages are then ready to be deployed as a complete static website that requires no server processing to be consumed by the end user. We can use any web platform to host the website.

Sample page snippet

layout: "page.njk"
title: "Title for the page"
meta: "Long decription that will appear in the page meta […]"
author: "State of California"
publishdate: "2021-01-07T17:12:28Z"
addtositemap: true

<p>content HTML</p>
Created and maintained by Office of Digital Innovation