Holidays
Dress the site for holidays through the year, from Lunar New Year to Diwali to Christmas, without remembering a thing.
Turn on seasons and your site marks holidays from around the world by itself: a strip along the top of the page, a prop on your logo and a greeting in the holiday's own languages. Each visitor's browser works out the day from their own date every time a page loads, so there's nothing to schedule and nothing to rebuild when a holiday starts or ends.

Turn it on
Add one line to site.yaml:
seasons: true
The strip then runs along the top of the window. To hang it under your header and put the day's prop on your logo, say where they are:
seasons:
anchor: header.top
logo: .brand-logo
Both are CSS selectors; those two fit the starter. anchor can list several, separated by |, and the first one found on the page wins.
Your templates need {{ seasons }} in the page's head. The starter has it; if your site started before seasons existed, add it to partials/head.html next to {{ consent }}.
Try a day
Add ?season= to any address on your site:
?season=diwalishows one holiday (names below);?season=2026-12-25shows everything that date would;?season=offturns it off, and?season=autogoes back to today.
The choice lasts until you close the tab, so you can click around the site.
Which holidays
| Name | When | On the strip | On the logo |
|---|---|---|---|
newyear |
31 December to 2 January | Fireworks | Top hat |
lunarnewyear |
Lunar New Year's Eve to the third day | Red lanterns | Lantern |
kings |
3 to 7 January | Lights | Crown |
eidalfitr, eidaladha |
The days of each Eid | Crescents and stars | |
holi |
Around the full moon of Phalguna, three days | Clouds of colour | Colour |
nowruz |
The first five days of the Persian new year | Blossom | |
carnival |
The four days before Ash Wednesday | Streamers | Mask |
easter |
Easter Sunday and Monday, Western and Orthodox | Bunting | Bunny ears |
songkran |
13 to 15 April | Water | Goggles |
pride |
June | A Progress Pride ribbon | Pride pin |
midsummer |
Midsummer Eve and Day | Leaves | Flower crown |
sysadmin |
The last Friday of July | Shades | |
linux |
25 August, Linux's birthday | Party hat | |
programmer |
The 256th day of the year (13 September, or the 12th in a leap year) | Hex | |
midautumn |
The 14th to 16th of the eighth lunar month | Moon lanterns | Rabbit lantern |
diwali |
The new moon of Kartika, and the days around it | Lamps | |
halloween |
29 to 31 October | Bats | Witch hat |
muertos |
1 and 2 November | Papel picado | Marigold |
remembrance |
11 November | Poppy | |
advent |
Advent Sunday to New Year's Eve | Lights | Santa hat |
lucia |
13 December | Lights | Candle wreath |
December is shared. Each observance gets its own small drawing at the end of the string of lights, side by side when they overlap: hanukkah (the menorah lit night by night), sinterklaas, bodhi (Bodhi Day), lucia, posadas (Las Posadas), yalda, dongzhi, christmas, kwanzaa (a candle a day), reyes (Three Kings) and genna (Ethiopian Christmas, 7 January). When two holidays fall on the same day, the one higher in the table dresses the page and both are greeted.
Lunar dates come from the visitor's browser. A browser without the Chinese, Hebrew, Islamic or Persian calendar simply skips those holidays. A holiday with nothing in the strip column still shows its greeting.
To show only some, or to leave some out:
seasons:
only: [lunarnewyear, diwali, advent, christmas, hanukkah]
# or
except: [halloween]
greetings: false keeps the strip and props but drops the greeting.
Your own drawings
The props are drawn to sit on a square logo. To move them, restyle .season-prop-head, .season-prop-eyes, .season-prop-ear, .season-prop-pin and .season-prop-side in your stylesheet.
If you'd rather draw your logo wearing each prop yourself, tell HotDog where the drawings are and it swaps the picture instead:
seasons:
art:
- image: logo.svg
art: /img/season/logo-{prop}.svg
Every picture whose address contains logo.svg then shows /img/season/logo-santa.svg in Advent, logo-lantern.svg at Lunar New Year, and so on. Put them in static/img/season/. The build checks that there's one for every prop and lists any that are missing: birthday, bunny, crown, flowers, goggles, holi, lantern, lucia, marigold, mask, mlantern, poppy, pride, santa, shades, tophat and witch. Pictures inside skip: (a selector) keep their usual look.
For everyone
The strip is decoration: screen readers skip it, it doesn't catch clicks, it stops moving for visitors who ask their system for less motion, and it's left out when a page is printed. Nothing is sent anywhere; the date never leaves the browser.

