v1.2.6
Content
Create contextual stories under content/ using MDX — Markdown with embedded components. Every file becomes a page during the build and can pull in IIIF resources, sliders, and cards.
See the Creating Markdown Content guide for a full walkthrough.
Authoring basics
- Store
.mdxfiles undercontent/. Nested directories become URL paths. - Start each file with optional YAML front matter to set titles, metadata, and referenced manifests.
- Write Markdown as usual, then drop components such as
<Viewer />or<ReferencedItems />wherever you need them.
Example
content/about/nez-perce.mdx
---title: The Nez Percé (Nimíipuu)referencedManifests: - https://api.dc.library.northwestern.edu/api/v2/works/14a6aa15-9e12-47a7-9617-91f430d4f47b?as=iiif--- # The Nez Percé (Nimíipuu) The Nez Percé, or Nimíipuu, lived across what is now Idaho, Oregon, and Washington. ## Watch the work <Viewer iiifContent="https://api.dc.library.northwestern.edu/api/v2/works/14a6aa15-9e12-47a7-9617-91f430d4f47b?as=iiif" /> <ReferencedItems />