Skip to main content

Content Model — what a church site contains

note

Rendered from churchix/corpus/wiki/content-model.md · updated 2026-11-02. This page is generated from churchix's own docs and rewritten on every docs build. Edit the source in churchix/, not here.

This is the product surface: the pages a Romanian church website needs and the Astro Content Collection schemas that encode them. Schemas live once in @churchix/schemas; every church imports them. For how the two markets differ in tone/features see traditions; for language rules and the domain glossary see i18n-and-glossary.

Page inventory (shared core)​

PageRO label(s)Notes
HomeAcasăHero, service times, livestream link, prominent Donează CTA, latest announcements
Service scheduleProgram / Program SlujbeMost-used page. Weekly/monthly; diaspora often "2nd & last Sunday" (shared clergy); downloadable monthly PDF/image common
News / announcementsAnunțuri / Actualitate / ȘtiriDated posts; often mirrored from Facebook
About / historyDespre / Prezentare / IstoricIdentity + leadership
LivestreamLIVE / Transmisiune LIVEEmbedded YouTube/Facebook — never self-hosted video
Sermons / mediaPredici / Arhivă / VideoYouTube-backed, embedded
Photo galleryGalerie FotoFeasts, baptisms, festivals
Events / calendarEvenimente / CalendarOften a list, not interactive
ContactContactAddress, map, phone, email, leadership; prayer-request form common
DonationsDonații / DoneazăThe biggest product gap — see donations

The per-tradition add-ons (Orthodox pomelnice / calendar / sacraments; evangelical statement-of-faith / ministries / bulletin) are listed in traditions. i18n, diacritics, and the domain glossary are in i18n-and-glossary.

Content Collections (schemas)​

Defined once in @churchix/schemas and imported by each church's content.config.ts. These are the canonical collections.

CollectionPurpose
siteSingle entry: church identity, branding token overrides, locales, enabled features, nav, social, contact, giving config
pagesFree-form MDX pages (About, Statement of Faith, sacrament info)
announcementsDated posts (Anunțuri)
eventsEvents / calendar entries
serviceScheduleRecurring + special service times (Program Slujbe)
sermonsSermon/media entries (embedded YouTube/Facebook + metadata)
staffClergy / pastors / leadership (with hierarchy ordering)
ministriesMinistries / small groups (evangelical)
galleryPhoto gallery albums
fundsDisplay metadata for giving funds (authoritative fund records live in the API/DB)
campaignsDisplay metadata for fundraising campaigns (live totals come from the API)

Schema definitions live in code, not here​

The authoritative Zod schemas are in packages/schemas/src/index.ts — siteSchema (identity + brand tokens + tradition + features + contact + giving), sermonSchema, eventSchema, staffSchema (with order for hierarchy), announcementSchema (pinned), serviceScheduleSchema (weekday/cadence/note), and campaignSchema (money in minor units + goalAmountMinor/raisedAmountMinor + status). Read the file rather than a copy — this page intentionally doesn't duplicate it. The brand object's token set is governed by design-system and ADR-0002; on 2026-05-29 brand was aligned with the Material-3 seed tokens (accent became secondary).

Example: a church's content.config.ts​

import { defineCollection } from "astro:content";
import { glob, file } from "astro/loaders";
import {
siteSchema, sermonSchema, eventSchema, staffSchema,
announcementSchema, serviceScheduleSchema,
} from "@churchix/schemas";

export const collections = {
site: defineCollection({ loader: file("src/content/site.json"), schema: siteSchema }),
sermons: defineCollection({ loader: glob({ pattern: "**/*.md", base: "src/content/sermons" }), schema: sermonSchema }),
events: defineCollection({ loader: glob({ pattern: "**/*.md", base: "src/content/events" }), schema: eventSchema }),
staff: defineCollection({ loader: glob({ pattern: "**/*.md", base: "src/content/staff" }), schema: staffSchema }),
announcements: defineCollection({ loader: glob({ pattern: "**/*.md", base: "src/content/announcements" }), schema: announcementSchema }),
serviceSchedule: defineCollection({ loader: file("src/content/schedule.json"), schema: serviceScheduleSchema }),
};

This keeps all real structure in the shared library: a church directory holds only data + a thin config that wires the shared schemas to its own files.