Files
jcoffey-dev 330d08a6d5
ci / editor-ui (pull_request) Successful in 1m32s
ci / go (pull_request) Successful in 1m33s
seasons: holidays through the year, worked out in the browser
seasons: in site.yaml (true, or a map) and {{ seasons }} in the head add a
small script that dresses the site for about two dozen holidays from around
the world: a strip along the top of the page, a prop laid over the logo and
a greeting in the holiday's own languages. December's observances each get
their own drawing at the end of the strip, side by side when they overlap.
The visitor's own date decides, every time a page loads, so nothing is
scheduled and nothing is rebuilt when a holiday starts or ends.

A site can say where the strip hangs (anchor), which element the prop sits
on (logo), swap pictures for its own drawings (art, checked for every prop
at build time), and pick holidays with only/except. The stylesheet is linked
rather than injected, so a strict CSP needs nothing extra. The starter's
head has the tag; with seasons off it writes nothing and adds no files.
2026-11-24 23:58:02 -07:00

569 B