A static artifact can support a lively experience when the document and the interaction each have a clear job.
The article begins with a timestamp
I wanted the authoring format to remain close to the way a personal archive grows. An article belongs to a year and a month. Inside that month's YAML file, its day and time identify the entry. The builder turns that information into a stable filename and a place in the chronology.
That means I do not maintain a separate list of routes whenever I write something. The filesystem and the article data provide the structure. The catalog discovers year and month folders, reads their articles, creates the language variants, and sorts the resulting entries by date and time. A new article becomes part of the latest month when I rebuild.
A timestamp is also a small authoring commitment. I keep it unique within its month because it determines the output stem. I can improve a title without changing that stem. English and Spanish versions share the same underlying article identity, which also gives comments one conversation across both versions.
articles:
- day: '17'
time: '08:40'
title:
en: My static blog, from YAML to a living archive
es: Mi blog estático, de YAML a un archivo que se recorre
tags: [static-sites, yaml, publishing]
pinned: false
intro:
en: A short, useful introduction appears on the card.
es: Una introducción breve y útil aparece en la tarjeta.
deepDive:
- type: heading
content:
en: The first idea
es: La primera idea
- type: paragraph
content:
en: The article develops that idea here.
es: El artículo desarrolla esa idea acá.
The introduction earns its place on the card
The distinction between intro and deepDive is central to the format. A card should give me something worth reading before it asks for a click. Its introduction can establish a problem, offer a useful observation, and explain why the longer piece is worth my attention. The article then develops that promise with examples and detail.
This also keeps the preview from becoming an arbitrary cut through a paragraph. I author the introduction deliberately. The title, image, date, tags, and introductory text form a coherent object that can appear in the timeline or in the pinned carousel. The full body remains in the article fragment.
A quotation supplies another entrance. The landing page presents an excerpt card with the source article and a reading action. It rotates more slowly than the pinned carousel so that the quotation has time to be read. A visitor can enter through a subject, an image, a title, or an idea that catches their attention.
The landing page is an editorial arrangement
The top of the archive contains pinned articles. Pinning is an editorial choice stored in the article data, so rebuilding the site preserves that choice while newer entries arrive below it. The carousel cycles gently through the selected cards, offers arrows at the sides, and uses a quiet progress line to suggest the rest of the rail.
The timeline starts with the most recent month that contains material. As the reader moves down, older months become available. The current build includes the card summaries and month sections in the landing document and progressively reveals older sections. Full article bodies are loaded separately through the iframe reader. That implementation detail matters when describing the site: the archive currently reveals prepared summaries rather than requesting a new month file on every scroll.
The table of contents gives the same collection a different shape. Months are branches and article titles are their children. Its pinned shortcut returns to the newest month and the carousel. On a wide screen it can sit beside the archive; in portrait it follows the tag cloud. A visitor can choose continuous exploration or direct movement through the tree.
Motion describes attention
I wanted a timeline with a sense of articles entering and leaving a stage. A card grows toward its full size as it approaches the reading region, remains comfortably legible there, and becomes smaller and less focused as it moves away. Month headings participate in that rhythm so the chronology does not feel detached from the content.
The duration and range matter more than the mere presence of an animation. A card that reaches focus for an instant and immediately leaves feels hurried. An effect that is almost invisible fails to communicate the stage. I treat the clear region, falloff, and scale as shared parameters, and judge them while actually scrolling in both orientations.
The carousel has a different job. Its cards remain clear, with a modest size adjustment only where the available rail clips them. Hover and keyboard focus pause rotation, and reduced-motion preferences are respected. These interactions should help someone understand what is available and choose a piece to read.
Language lives in the content model
I write for people in Argentina and for people elsewhere, so the article format carries English and Spanish together. Titles, introductions, quotations, and prose blocks can provide both versions. The authoring key es is retained in the YAML, while the public document uses the standard es language tag.
The visual system remains shared. A card does not need a different design because its text is Spanish. The language component selects messages and visible variants, and the reader can load the corresponding article fragment. The same principle applies to the site's identity, About page, Contact page, and form feedback: their words come from YAML rather than being scattered through rendering functions.
Longer translations are also useful design inputs. They reveal whether a button depends on one short English label or whether a title has enough room to wrap. Bilingual content encourages the layout to adapt to the material it actually receives.
Reading changes the page; publishing changes the files
Clicking a card changes the landing layout into a reading layout inside the current document. The reader requests the generated fragment through a hidden iframe, processes its shared resource slots, and inserts the article. Browser history records the transition. Returning restores the archive and the place where the visitor left it.
Publishing happens earlier. My Windows build bundles LiveScript through lsdep, runs the builder under WSH, emits UTF-8 HTML and CSS, and copies the assets into the output tree. lighttpd serves that tree for local inspection. Static publication uploads the generated tree; the public reading path has no CGI dependency.
Comments follow the same publication boundary. The Worker receives them into D1, approval selects what may become public, and an export feeds the next build. Until that rebuild happens, the published article stays unchanged. Contact messages remain private and never enter that export. This gives the blog a modest dynamic edge while keeping its reading material a collection of inspectable, durable files.
