History: How it works
← How it works2 versions, since Nov 19, 2026
Compare versions
feat: compare any two versions of a page (#2)
Changes
---
title: How it works
description: What the plugin does at build time.
---
Everything happens when the site is built. History pages are plain HTML: no JavaScript, no server, , with no server and no API calls. The only script is the one that compares two versions you pick.
⋯
- a block longer than six lines shows only its changed lines, with one line around them.
4. **Where.** Each page with at least one version gets `/<page>/history/`. The page's footer links to it.
5. **Comparing any two.** Each page also gets `/<page>/history/versions.json`, with every version cut into blocks. A block that several versions share is stored once. The history page loads it only when a reader compares two versions, and runs the same diff in the browser.
The history shows the source as written, Markdown included, not the rendered page.
4 unchanged paragraphs
feat: show every version of a page and what changed
First version of the page.