This site is built with Eleventy and Netlify.
npm install
Use the Netlify CLI to inject environment variables stored against the Netlify site — no local .env
file needed!
ntl dev
Contains all code to fetch and format data from the following sources:
- Contentful
- GitHub
- Twitch
Directories prefixed with _
are utility folders, providing global data, layouts, styles, component partials and other
functionality.
Other directories (about, blog, dashboard, projects, talks, topics, uses) act as page-level route directories, resulting
in e.g. /projects/
, /dashboard/
etc in the site build.
The site homepage is built from /src/index.11ty.js
.
- e.g.
/{name}/index.11ty.js
builds the/{name}/
route. - e.g.
/{name}/{name}.11tydata.js
fetches the data that is provided to sibling files. - e.g.
{name}-pages.11ty.js
creates a collection of files (or dynamic routes) using Eleventy pagination, available on/{name}/{dynamic_route}/
The Eleventy config file:
- loads plugins
- defines how to output files and directories from ./src
Using ntl dev
, the site is built to and served from _site
.