CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Commands

npm run serve   # Start local dev server with hot-reload
npm run build   # Build static site to _site/

No test suite is configured.

Environment Setup

Requires a .env file with Contentful credentials:

CTFL_SPACE=<space_id>
CTFL_ACCESSTOKEN=<access_token>

Architecture

Eleventy (11ty) static site driven by Contentful CMS. Content is fetched at build time from Contentful and rendered into static HTML using Liquid templates.

Data Flow

_data/*.js files fetch from Contentful at build time → Liquid templates consume the data → Eleventy outputs _site/.

Key Config: .eleventy.js

The main Eleventy config file is large (~436 lines) and contains most application logic:

Templates

Root-level .liquid files are pages; _includes/ contains layout and shared components:

Styling

Plain CSS, no framework. Files in _includes/:

CSS is minified at build time via the cssmin filter.

Static Assets

src/assets/ contains static files copied to the build output. src/_redirects is a Netlify redirects file.

Image Optimization

Uses @11ty/eleventy-img for AVIF/JPEG generation; cached images land in img/ and .cache/.