Files
jcoffey-dev d90fdc9d0b
ci / go (pull_request) Successful in 54s
ci / editor-ui (pull_request) Successful in 1m19s
Five more packs: faq, gallery, location-and-hours, team, testimonials
The first batch of WordPress add-ons rebuilt as packs: templates and styles only, no script.

- faq: questions that open to show their answers (<details>), written in the section or shared from data/.
- gallery: a picture grid; each opens full size with previous and next, using #links and :target, no script.
- location-and-hours: address with an OpenStreetMap link, phone, email, opening hours and a note, from data/location.yaml, as a section or a partial for any layout.
- team: a people collection with a page per person (photo, role, email, links), a list page and a Team section.
- testimonials: quotes with a name and a role.

Also: sections get .Index, their place on the page, so two galleries on a page don't share ids; pack templates may use tel: links; docs/packs.md lists the bundled packs. A new test installs each into the starter with real content, builds it, and runs the checks expecting no errors.
2026-10-11 17:11:40 -07:00

30 lines
836 B
YAML

name: team
version: 1.0.0
title: Team
description: The people behind a site, each with a photo, a role and a page of their own, and a section that shows them on any page.
license: MIT
author: Coffey Labs LLC
collections:
people:
layout: person
list_layout: people
sort: weight
notes: |
Add each person as content/people/<name>.md:
---
title: Sam Rivera
role: Head baker
photo: /media/team/sam.jpg
photo_alt: Sam in the bakery, smiling
weight: 1
email: [email protected]
links:
- { name: Mastodon, url: "https://example.social/@sam" }
---
A few lines about Sam, in Markdown.
weight puts people in order (lowest first). /people/ lists everyone, and
the "Team" section shows them on any page. Give content/people/_index.md a
title, such as "Our team", to name that page.