The second batch of WordPress add-ons rebuilt as packs, templates and styles only:
- docs: a documentation section with a sidebar, part pages and previous/next, in the order data/docs-nav.yaml gives (the layout behind hotdogcms.org/docs, without its search script).
- downloads: files to download, with their type and size read from the file at build time.
- menu-and-prices: a price list in groups (a menu, services) and plans side by side.
- portfolio: a work collection with a cover, details and pictures per project, a list page and a section.
- share-links: plain links to Mastodon, Bluesky, LinkedIn and email share pages; nothing loads from those sites until someone chooses one.
Also a fileSize template function ("1.2 MB" for a file in static/, "" if it isn't there). The bundled-packs test covers all ten.
19 lines
599 B
YAML
19 lines
599 B
YAML
name: downloads
|
|
version: 1.0.0
|
|
title: Downloads
|
|
description: A list of files to download, each with its type, size and a line about it.
|
|
license: MIT
|
|
author: Coffey Labs LLC
|
|
notes: |
|
|
Put the files in static/, such as static/files/menu.pdf, then add a
|
|
"Downloads" section to any page:
|
|
|
|
sections:
|
|
- downloads:
|
|
heading: Forms and menus
|
|
items:
|
|
- { title: Catering menu, file: /files/catering-menu.pdf, description: Updated every season. }
|
|
|
|
The type (PDF) and size are worked out from the file itself when the site
|
|
is built, so they're never out of date.
|