Authoring content
Projects are MDX files with frontmatter fields and a body built from a few layout components. Services and testimonials are YAML. All of it is checked against a schema when the site builds.
Where content lives
| Content | File |
|---|---|
| Projects | src/content/projects/<slug>/index.mdx |
| Services | src/content/services/<slug>.yaml |
| Testimonials | src/data/testimonials.yaml |
| Homepage copy | src/data/home.ts |
| Contact info, socials, services menu | src/data/site.ts |
Project frontmatter
Fields are defined in src/content.config.ts. A missing or mistyped field fails the build with the file and field named. Images can be a local file (./photo.png) or a CDN URL.
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | Yes | Project name, used as the H1 and card title |
order | number | Yes | Position in lists, lowest first |
tags | list | Yes | Any of: Branding, Webflow, Web Dev, UI/UX Design, Illustration, Photography |
cardImages | list of images | Yes | Card cover; the rest cycle on hover |
intro | string | Yes | Opening paragraph; inline links and bold allowed |
cover.screenshot | image | — | Flat screenshot, shown as an angled cover |
cover.image | image | — | Finished cover image, used as-is |
cover.alt | string | With cover | Alt text for the cover |
details | list | — | Sidebar facts: label, value (or list), optional href |
website | URL | — | Adds a “View website” button |
goal | string | — | Shown under a “Goal” heading |
testimonial | id | — | An id from testimonials.yaml |
description | string | — | SEO description; defaults to the intro |
draft | boolean | — | true hides the project in production |
---
title: "Website for a coffee roaster"
order: 8
tags: ["Webflow", "Branding"]
cardImages:
- https://images.jonweller.design/projects/coffee/card-1.avif
- https://images.jonweller.design/projects/coffee/card-2.avif
cover:
screenshot: https://images.jonweller.design/projects/coffee/homepage.avif
alt: "Homepage for Example Roasters"
details:
- label: Industry
value: Food and beverage
- label: Deliverables
value: [Webflow website, Logo]
website: https://example.com
intro: "One-paragraph intro with a [link](https://example.com)."
goal: "What the project set out to do."
---Layout components
Available in every project file with no imports. Leave a blank line between a component tag and the Markdown inside it.
Section
Wraps a block of the case study in standard padding and the page container. Every body block starts with one.
Split
One-third text, two-thirds media. Stacks on mobile.
Website
A short description of the website.
<Section>
<Split>
<Prose>
## Website
A short description of the website.
</Prose>

</Split>
</Section>Prose
Limits text to a readable width: sm (25rem, default), md (40rem) or lg (50rem).
Stack and Grid
<Stack> stacks items with the standard gap (tinted adds the light background). <Grid> puts items two-up.
<Grid>


</Grid>Gallery
A two-column image grid. Give an image the title "wide" to span both columns.
<Gallery>



</Gallery>Media embeds
<Video vimeo="1000075980" title="Homepage walkthrough" />
<Video youtube="dQw4w9WgXcQ" title="…" />
<CodePen user="jpweller" slug="mdZMpBM" title="Spinning DNA" />
<Columns> <!-- paragraphs side by side -->Images
- Upload with
npm run images -- upload projects/<slug> <files>. It resizes to 3000px max, converts to AVIF, uploads to the CDN and prints the URLs. - The build makes responsive sizes, so originals only need to be big enough, not small.
- Every image needs alt text that describes what it shows, not “image of…”. Purely decorative images get empty alt (
![]()). - Card images are 40:21 (e.g. 1800×945). Cover screenshots work best 1440px+ wide.
Writing
- Sentence case for headings and buttons (“See my work”, not “See My Work”).
- Lead with the outcome. Intros say who the client is; goals say what had to change.
- Keep project paragraphs short, one idea each, inside a
<Prose>column. - Links say where they go (“View website”), never “click here”.