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.
Your HotDog CMS site
hotdog-cms serve preview at http://127.0.0.1:8140, rebuilding as you save
hotdog-cms build write the finished site to public/
hotdog-cms check build, then look for broken links and forbidden strings
| Folder | What goes in it |
|---|---|
content/ |
Pages, as Markdown. about.md becomes /about/; a folder such as articles/ is a collection |
layouts/ |
Page shapes. base.html wraps every page; the others fill its main block |
partials/ |
Pieces layouts share: head, nav, footer |
sections/ |
Blocks a page can stack in its front matter (sections:) |
data/ |
YAML or JSON that templates and sections read |
assets/ |
CSS, scripts, fonts. Published with a content hash in the name |
static/ |
Files copied as they are: favicon, .well-known/, images |
public/ is the output. Don't edit it; it's replaced on every build.
The starter's templates, styles and scripts are MIT licensed
(LICENSE-starter.txt), so you can change them, keep them private or sell
sites built on them. Your content is yours.