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.
25 lines
838 B
YAML
25 lines
838 B
YAML
name: location-and-hours
|
|
version: 1.0.0
|
|
title: Location and hours
|
|
description: Your address, opening hours, phone and email, with a map link and room for holiday changes, on any page or in the footer.
|
|
license: MIT
|
|
author: Coffey Labs LLC
|
|
notes: |
|
|
Put your details in data/location.yaml, once:
|
|
|
|
name: Bakery on Main
|
|
address: |
|
|
12 Main Street
|
|
Springfield, IL 62701
|
|
phone: "(217) 555-0142"
|
|
email: [email protected]
|
|
hours:
|
|
- { days: Monday to Friday, times: 7am to 6pm }
|
|
- { days: Saturday, times: 8am to 2pm }
|
|
- { days: Sunday, times: Closed }
|
|
note: Closed on public holidays.
|
|
|
|
Then add a "Location and hours" section to any page (it reads that file
|
|
unless you fill the section's own fields), or show the hours in a layout
|
|
with {{ template "location-hours" (data "location") }}.
|