Skip to content
HomePagesHomePages template kit

PhotoFixture

A gallery/hero photo fixture.

A gallery/hero photo fixture. id is a dev media pack asset id — the same thing a real content doc holds; url/responsive are absent because they exist only after the media resolver turns the id into resolved URLs, so no fixture may state them. alt is NOT what the rendered image’s alt text becomes — resolution always takes that from the pack asset’s own caption instead, unconditionally. This field feeds the derive-time facts view’s per-photo caption instead, read by compute() callbacks.

Import from @homepages/template-kit/fixtures.

export type PhotoFixture = {
id: PhotoAssetId;
alt: string;
tags: {
room?: string;
category?: string;
};
};