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.
20 lines
649 B
YAML
20 lines
649 B
YAML
name: faq
|
|
version: 1.0.0
|
|
title: Questions and answers
|
|
description: An FAQ section whose questions open to show their answers, with no script, on any page.
|
|
license: MIT
|
|
author: Coffey Labs LLC
|
|
notes: |
|
|
Add a "Questions and answers" section to any page, in the editor's section
|
|
library or in the page's front matter:
|
|
|
|
sections:
|
|
- faq:
|
|
heading: Questions and answers
|
|
items:
|
|
- question: Do you deliver?
|
|
answer: Yes, within five miles, from 9am to 5pm.
|
|
|
|
To share one list between pages, put the questions in data/faq.yaml (a list
|
|
of question and answer) and set from: faq instead of items.
|