- HTML 83.1%
- CSS 10.4%
- JavaScript 6.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: #3 |
||
| assets | ||
| content/ap | ||
| deploy | ||
| layouts | ||
| static | ||
| themes | ||
| .gitignore | ||
| .gitmodules | ||
| .hugo_build.lock | ||
| .woodpecker.yml | ||
| hugo.toml | ||
| LICENSE | ||
| README.md | ||
m44
a personal website
Adding a video to an album
Videos sit in the photo grid like any other picture: the tile shows a still frame with a play badge, and clicking it opens the same lightbox the photos use, with the clip playing.
-
Drop the
.mp4in the album's asset folder, e.g.assets/ap/events/2026-08-12-totality.mp4. -
Add a poster image with the same basename next to it -- that still is what the grid shows, and it is not listed as a separate photo:
ffmpeg -i assets/ap/events/2026-08-12-totality.mp4 \ -ss 00:00:02 -vframes 1 -q:v 2 \ assets/ap/events/2026-08-12-totality.jpg.jpeg,.pngand.webpwork as well. Hugo fails the build with an explanatory error if the poster is missing. -
Describe it in the album's
_index.mdunderresources:. Pointsrcat either the.mp4or its poster image -- both are recognised. The same keys as a photo apply, andweightdecides where it lands between the pictures:- src: /ap/events/2026-08-12-totality.mp4 locations: - Carrión de los Condos categories: - Solar weight: 15 phototitle: Totality description: 12/08/2026 - The last seconds before third contact.
The clip is only downloaded once someone opens it, and playback stops when the lightbox is closed or moves on to the next image.