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

ContentFile
Projectssrc/content/projects/<slug>/index.mdx
Servicessrc/content/services/<slug>.yaml
Testimonialssrc/data/testimonials.yaml
Homepage copysrc/data/home.ts
Contact info, socials, services menusrc/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.

FieldTypeRequiredNotes
titlestringYesProject name, used as the H1 and card title
ordernumberYesPosition in lists, lowest first
tagslistYesAny of: Branding, Webflow, Web Dev, UI/UX Design, Illustration, Photography
cardImageslist of imagesYesCard cover; the rest cycle on hover
introstringYesOpening paragraph; inline links and bold allowed
cover.screenshotimage—Flat screenshot, shown as an angled cover
cover.imageimage—Finished cover image, used as-is
cover.altstringWith coverAlt text for the cover
detailslist—Sidebar facts: label, value (or list), optional href
websiteURL—Adds a “View website” button
goalstring—Shown under a “Goal” heading
testimonialid—An id from testimonials.yaml
descriptionstring—SEO description; defaults to the intro
draftboolean—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.

Image
<Section>
<Split>
<Prose>

## Website

A short description of the website.

</Prose>

![Homepage at desktop and mobile](./website.png)

</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.

Image
Image
<Grid>

![Logo inspiration](./inspiration.png)

![Final logo](./logo.svg)

</Grid>

Gallery

A two-column image grid. Give an image the title "wide" to span both columns.

<Gallery>

![Sunset over the lake](./lake.avif)
![Waterfall](./waterfall.avif)
![Valley at dusk](./valley.avif "wide")

</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”.