An Eleventy 3 blog starter in JavaScript that builds Markdown posts and Nunjucks layouts into plain static HTML. It is for developers and writers who want a content-first site with a post list, post pages, an about page and site-wide data, ready to rename.
by Light CloudBlogs


The whole configuration is a dozen lines in eleventy.config.js: input and output folders, a passthrough copy for src/assets and two date filters. Posts pick up their layout, tag and URL from posts.json, so a new post is just a Markdown file with a title and date. Change src/_data/site.json first, then replace the sample posts and restyle src/assets/css/main.css. It builds with npm run build into _site/, and each push to your copy redeploys.
Yes. This one is MIT licensed, with one devDependency (@11ty/eleventy), two layouts, two partials, a posts collection and an about page.
Create a Markdown file in src/posts/ with a title, a date and optionally a description in the front matter. posts.json gives it the post layout and a URL, and it appears on the home page.
Create a Markdown or Nunjucks file in src/ with layout: layouts/base.njk and a permalink, as in src/about.md, then add the link to src/_includes/partials/header.njk.
No. The output is HTML and one CSS file. Add a script to src/assets and a script tag in base.njk if you need one.
Yes. npm run build writes plain files to _site/, which any static host serves; set the host's build command to npm run build and its output folder to _site.