Files
hotdog-cms/packs/videos/pack.yaml
T
jcoffey-dev 56d6dbbfc3
ci / editor-ui (pull_request) Successful in 31s
ci / go (pull_request) Successful in 2m11s
Nine packs: the rest of the list
reviews (star ratings with the average, as a section or under a product,
which then gets AggregateRating), glossary (A to Z with a letter row, each
term linkable, DefinedTermSet), logo-wall (a still grid, muted logos become
light outlines in dark mode, white tiles on request), videos (a library from
your own files: page per video with captions and transcript, list, feed,
Latest videos section, VideoObject), directory (entries grouped by category
with a page each), link-in-bio (one page of big buttons, no menu),
status-page (components from data/status.yaml, incidents with a feed),
coming-soon (a holding page with a launch date and a form, no menu) and
timeline (dates down a line).

Template functions: sortBy, ratings and stars. formatDate takes a date with
a time, as front matter's date: does, and now is in the site's timezone.

A layout can leave out the site's menu by redefining nav, but only with a
non-empty body: Go keeps the old template when the new one is empty.
2026-10-14 13:40:50 -07:00

36 lines
1.2 KiB
YAML

name: videos
version: 1.0.0
title: Videos
description: A video library, with a page per video, its transcript, a list, a feed and a "Latest videos" section, all from your own files.
license: MIT
author: Coffey Labs LLC
collections:
videos:
layout: video
list_layout: video-list
feed: true
notes: |
Put each video's files in static/media/ and add it as
content/videos/<name>.md:
---
title: Shaping a boule
date: 2027-01-12
summary: Two minutes, one loaf, no special tools.
video: /media/shaping.mp4
webm: /media/shaping.webm # optional, smaller
poster: /media/shaping.webp # the picture shown before it plays
captions: /media/shaping.vtt # optional WebVTT captions
duration: "2:14"
---
The transcript, or notes about the video.
/videos/ lists every video with its poster, and /videos/feed.xml lets
people follow new ones. Add a "Latest videos" section to any page to show
the newest few. Videos with a poster and a date are described to search
engines (VideoObject).
The videos are your own files, played by the visitor's browser: no
YouTube or other player, so nothing tracks your visitors. For one video
on a page, the starter's Video section is enough.